diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-09-27 20:00:08 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-09-27 20:23:59 +0000 |
| commit | dd4781547852c9bf34ffcf5362b1e25da84ecc51 (patch) | |
| tree | 02f9169e1381c76ea46412c8be54a98aaf9bf1d6 /src/librustc_resolve | |
| parent | d0623cf7bda44849ab5df78a06b22f9108cf821a (diff) | |
| download | rust-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.rs | 5 |
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) { |
