@@ -53,7 +53,7 @@ use rustc_data_structures::sync::Lrc;
53
53
use rustc_errors:: { DiagArgFromDisplay , DiagCtxtHandle , StashKey } ;
54
54
use rustc_hir:: def:: { DefKind , LifetimeRes , Namespace , PartialRes , PerNS , Res } ;
55
55
use rustc_hir:: def_id:: { LocalDefId , LocalDefIdMap , CRATE_DEF_ID , LOCAL_CRATE } ;
56
- use rustc_hir:: { self as hir, ConstArgKind } ;
56
+ use rustc_hir:: { self as hir} ;
57
57
use rustc_hir:: {
58
58
ConstArg , GenericArg , HirId , ItemLocalMap , MissingLifetimeKind , ParamName , TraitCandidate ,
59
59
} ;
@@ -126,7 +126,7 @@ struct LoweringContext<'a, 'hir> {
126
126
/// they do get their own DefIds. Some of these DefIds have to be created during
127
127
/// AST lowering, rather than def collection, because we can't tell until after
128
128
/// name resolution whether an anonymous constant will end up instead being a
129
- /// [`rustc_hir ::ConstArgKind::Path`]. However, to compute which generics are
129
+ /// [`hir ::ConstArgKind::Path`]. However, to compute which generics are
130
130
/// available to an anonymous constant nested inside another, we need to make
131
131
/// sure that the parent is recorded as the parent anon const, not the enclosing
132
132
/// item. So we need to track parent defs differently from HIR owners, since they
@@ -1207,7 +1207,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
1207
1207
ImplTraitContext :: Disallowed ( ImplTraitPosition :: Path ) ,
1208
1208
None ,
1209
1209
) ;
1210
- ConstArgKind :: Path ( qpath)
1210
+ hir :: ConstArgKind :: Path ( qpath)
1211
1211
}
1212
1212
_ => {
1213
1213
// Construct an AnonConst where the expr is the "ty"'s path.
@@ -1287,7 +1287,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
1287
1287
1288
1288
return ConstArg {
1289
1289
hir_id : self . next_id ( ) ,
1290
- kind : ConstArgKind :: Path ( qpath) ,
1290
+ kind : hir :: ConstArgKind :: Path ( qpath) ,
1291
1291
is_desugared_from_effects : false ,
1292
1292
} ;
1293
1293
}
@@ -1296,7 +1296,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
1296
1296
self . children . push ( ( lowered_anon. def_id , hir:: MaybeOwner :: NonOwner ( lowered_anon. hir_id ) ) ) ;
1297
1297
ConstArg {
1298
1298
hir_id : self . next_id ( ) ,
1299
- kind : ConstArgKind :: Anon ( lowered_anon) ,
1299
+ kind : hir :: ConstArgKind :: Anon ( lowered_anon) ,
1300
1300
is_desugared_from_effects : false ,
1301
1301
}
1302
1302
}
0 commit comments