about summary refs log tree commit diff
path: root/src/librustc_resolve
diff options
context:
space:
mode:
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-09-27 20:00:08 +0000
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-09-27 20:23:59 +0000
commitdd4781547852c9bf34ffcf5362b1e25da84ecc51 (patch)
tree02f9169e1381c76ea46412c8be54a98aaf9bf1d6 /src/librustc_resolve
parentd0623cf7bda44849ab5df78a06b22f9108cf821a (diff)
downloadrust-dd4781547852c9bf34ffcf5362b1e25da84ecc51.tar.gz
rust-dd4781547852c9bf34ffcf5362b1e25da84ecc51.zip
Avoid re-export errors in the generated test harness.
Diffstat (limited to 'src/librustc_resolve')
-rw-r--r--src/librustc_resolve/resolve_imports.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/librustc_resolve/resolve_imports.rs b/src/librustc_resolve/resolve_imports.rs
index ba45b773c09..1fc9c45de93 100644
--- a/src/librustc_resolve/resolve_imports.rs
+++ b/src/librustc_resolve/resolve_imports.rs
@@ -683,9 +683,8 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
         };
 
         match (value_result, type_result) {
-            // With `#![feature(item_like_imports)]`, all namespaces
-            // must be re-exported with extra visibility for an error to occur.
-            (Ok(value_binding), Ok(type_binding)) if self.new_import_semantics => {
+            // All namespaces must be re-exported with extra visibility for an error to occur.
+            (Ok(value_binding), Ok(type_binding)) => {
                 let vis = directive.vis.get();
                 if !value_binding.pseudo_vis().is_at_least(vis, self) &&
                    !type_binding.pseudo_vis().is_at_least(vis, self) {