From c5a766f13379e543d2721b610c8eb6f3beb2af69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Mon, 10 Jan 2011 15:56:55 -0500 Subject: 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'. --- src/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index 7127e4b1..2909882e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -402,6 +402,8 @@ TEST_XFAILS_BOOT := $(TASK_XFAILS) \ test/run-pass/vec-slice.rs \ test/run-pass/while-and-do-while.rs \ test/run-fail/task-comm-14.rs \ + test/compile-fail/import.rs \ + test/compile-fail/import2.rs \ test/compile-fail/bad-recv.rs \ test/compile-fail/bad-send.rs \ test/compile-fail/infinite-vec-type-recursion.rs \ @@ -477,6 +479,8 @@ TEST_XFAILS_RUSTC := $(filter-out \ $(addprefix test/compile-fail/, \ arg-count-mismatch.rs \ arg-type-mismatch.rs \ + import.rs \ + import2.rs \ while-type-error.rs \ ), \ $(wildcard test/*/*.rs test/*/*.rc)) -- cgit v1.2.3