about summary refs log tree commit diff
path: root/src/rt/rust_run_program.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-04-15 13:00:56 -0700
committerbors <bors@rust-lang.org>2013-04-15 13:00:56 -0700
commit4beebc427c4688fa61492478a6ef70af1625fbc3 (patch)
treed884e879bb497163f860f50be3720a6a3f6d0f96 /src/rt/rust_run_program.cpp
parent39e2ab5e8b67763ff960203a32acc24a17beeb50 (diff)
parent59e69aa0e79302887abcb4b6bf3613c84b48e5d7 (diff)
downloadrust-4beebc427c4688fa61492478a6ef70af1625fbc3.tar.gz
rust-4beebc427c4688fa61492478a6ef70af1625fbc3.zip
auto merge of #5797 : alexcrichton/rust/issue-1913, r=catamorphism
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...
Diffstat (limited to 'src/rt/rust_run_program.cpp')
0 files changed, 0 insertions, 0 deletions