Commit 7c7ea1d
committed
[SE-0458] Suppress "no unsafe operations" warnings outside of strict mode
This is a stop-gap solution to prevent spurious warnings when "unsafe"
expressions and for..in loops are used without strict memory safety.
The full answer is probably to determine where unsafe code is all the time,
so that we can still (correctly) diagnose "no unsafe operations" even outside
of strict memory safety mode.1 parent 8e87541 commit 7c7ea1d
File tree
2 files changed
+24
-1
lines changed- lib/Sema
- test/Unsafe
2 files changed
+24
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4309 | 4309 | | |
4310 | 4310 | | |
4311 | 4311 | | |
4312 | | - | |
| 4312 | + | |
| 4313 | + | |
4313 | 4314 | | |
4314 | 4315 | | |
4315 | 4316 | | |
| |||
4343 | 4344 | | |
4344 | 4345 | | |
4345 | 4346 | | |
| 4347 | + | |
| 4348 | + | |
| 4349 | + | |
4346 | 4350 | | |
4347 | 4351 | | |
4348 | 4352 | | |
| |||
4351 | 4355 | | |
4352 | 4356 | | |
4353 | 4357 | | |
| 4358 | + | |
4354 | 4359 | | |
4355 | 4360 | | |
4356 | 4361 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments