File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1584,6 +1584,7 @@ fn first_non_private<'tcx>(
15841584 if let Some ( use_def_id) = reexp. id ( ) &&
15851585 let Some ( local_use_def_id) = use_def_id. as_local ( ) &&
15861586 let Some ( hir:: Node :: Item ( item) ) = hir. find_by_def_id ( local_use_def_id) &&
1587+ !item. ident . name . is_empty ( ) &&
15871588 let hir:: ItemKind :: Use ( path, _) = item. kind
15881589 {
15891590 for res in & path. res {
Original file line number Diff line number Diff line change 1+ pub struct Ident ;
Original file line number Diff line number Diff line change 1+ // Regression test for <https://github.com/rust-lang/rust/pull/113374> to
2+ // ensure it doesn't panic.
3+
4+ mod generics {
5+ pub enum WherePredicate {
6+ EqPredicate ,
7+ }
8+ }
9+ pub mod visit {
10+ use * ;
11+ pub fn visit_where_predicate < V > ( _visitor : & mut V , _i : & WherePredicate ) { }
12+ }
13+ pub use generics:: * ;
You can’t perform that action at this time.
0 commit comments