about summary refs log tree commit diff
path: root/src/libstd/priority_queue.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-02-05 02:01:02 -0500
committerAlex Crichton <alex@alexcrichton.com>2013-02-05 12:40:59 -0500
commit6a4483ec7a92bedab69b363aeeb6931b1bb5951f (patch)
tree63f9e00da7ba451d79efbba56ec277456eddb104 /src/libstd/priority_queue.rs
parentf1b05ece9310303c600ecf83c895892d7a19b565 (diff)
downloadrust-6a4483ec7a92bedab69b363aeeb6931b1bb5951f.tar.gz
rust-6a4483ec7a92bedab69b363aeeb6931b1bb5951f.zip
Fix some bugs with -W unused-imports
1. Don't warn about anything not used in the prelude which is autmoatically
   injected, accomplished with a test that the span is equal to a dummy span.
2. Don't warn about unused imports from the injected intrinsic module,
   accomplished by testing against the name of the imported module
3. If anything is used from a glob import, don't warn about the glob import.
4. If an import imports more than one thing, and none of them are used, only
   issue a warning once

Also updated the unused-imports-warn test to have stricter requirements on
error messages.
Diffstat (limited to 'src/libstd/priority_queue.rs')
0 files changed, 0 insertions, 0 deletions