Skip to content

Commit 37c4a5b

Browse files
committed
Recover supporting use std::{io::self}
1 parent f39a019 commit 37c4a5b

File tree

4 files changed

+246
-164
lines changed

4 files changed

+246
-164
lines changed

compiler/rustc_resolve/src/build_reduced_graph.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -606,9 +606,7 @@ impl<'a, 'ra, 'tcx> BuildReducedGraphVisitor<'a, 'ra, 'tcx> {
606606
let mut source = module_path.pop().unwrap();
607607

608608
// `true` for `...::{self [as target]}` imports, `false` otherwise.
609-
let type_ns_only = nested
610-
&& source.ident.name == kw::SelfLower
611-
&& use_tree.prefix.segments.len() == 1;
609+
let type_ns_only = nested && source.ident.name == kw::SelfLower;
612610

613611
match source.ident.name {
614612
kw::DollarCrate => {

0 commit comments

Comments
 (0)