Closes #5487, #1913, and #4568 I tracked this by adding all used unsafe blocks/functions to a set on the `tcx` passed around, and then when the lint pass comes around if an unsafe block/function isn't listed in that set, it's unused. I also removed everything from the compiler that was unused, and up to stage2 is now compiling without any known unused unsafe blocks. I chose `unused_unsafe` as the name of the lint attribute, but there may be a better name... |
||
|---|---|---|
| .. | ||
| auxiliary | ||
| bench | ||
| compile-fail | ||
| debug-info | ||
| pretty | ||
| run-fail | ||
| run-pass | ||
| run-pass-fulldeps | ||