diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-01-08 11:12:16 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-01-08 19:27:57 -0800 |
| commit | a8d37af2473da79be704c9ce2374f278c47177b6 (patch) | |
| tree | 4d2ed9670352600b81c1132e1b2fc8dcd16c8abb /src/libcore/util.rs | |
| parent | fd872284bb827f22cd4b38e3e0002efd4c99884f (diff) | |
| download | rust-a8d37af2473da79be704c9ce2374f278c47177b6.tar.gz rust-a8d37af2473da79be704c9ce2374f278c47177b6.zip | |
librustc: Make unqualified identifier searches terminate at the nearest module scope. r=tjc
Diffstat (limited to 'src/libcore/util.rs')
| -rw-r--r-- | src/libcore/util.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libcore/util.rs b/src/libcore/util.rs index 7dbc9f76f7a..423dbaedf26 100644 --- a/src/libcore/util.rs +++ b/src/libcore/util.rs @@ -19,6 +19,7 @@ Miscellaneous helpers for common patterns. #[forbid(deprecated_pattern)]; use cmp::Eq; +use prelude::*; /// The identity function. #[inline(always)] @@ -104,6 +105,10 @@ pub fn unreachable() -> ! { mod tests { #[legacy_exports]; + + use option::{None, Some}; + use util::{NonCopyable, id, replace, swap}; + #[test] fn identity_crisis() { // Writing a test for the identity function. How did it come to this? |
