aboutsummaryrefslogtreecommitdiff
path: root/src/test/run-pass
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <[email protected]>2011-01-10 15:56:55 -0500
committerGraydon Hoare <[email protected]>2011-01-11 13:58:39 -0800
commitc5a766f13379e543d2721b610c8eb6f3beb2af69 (patch)
tree4e0857ddd4bd08c32a37470e4ee64c5b193b970c /src/test/run-pass
parentSketch support for reading multi-file crates in rustc. Add test, not yet work... (diff)
downloadrust-c5a766f13379e543d2721b610c8eb6f3beb2af69.tar.xz
rust-c5a766f13379e543d2721b610c8eb6f3beb2af69.zip
Fix two invalid import cases we were not detecting:
* If an import was unused we would never print any errors for it. * We would keep the existing environment in scope when descending 'foo.bar' and would find 'bar' in the global environment if there was no 'bar' in 'foo'.
Diffstat (limited to 'src/test/run-pass')
-rw-r--r--src/test/run-pass/use.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/run-pass/use.rs b/src/test/run-pass/use.rs
index 8638d609..ac46061c 100644
--- a/src/test/run-pass/use.rs
+++ b/src/test/run-pass/use.rs
@@ -3,9 +3,9 @@ use libc();
use zed(name = "std");
use bar(name = "std", ver = "0.0.1");
-import std._str;
-import x = std._str;
-
+// FIXME: commented out since resolve doesn't know how to handle crates yet.
+// import std._str;
+// import x = std._str;
mod baz {
use std;
@@ -13,8 +13,8 @@ mod baz {
use zed(name = "std");
use bar(name = "std", ver = "0.0.1");
- import std._str;
- import x = std._str;
+ // import std._str;
+ // import x = std._str;
}
fn main() {