Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 5107264

Browse files
committed
Remove extra import
1 parent ded9f2e commit 5107264

File tree

1 file changed

+5
-5
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+5
-5
lines changed

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ use rustc_data_structures::sync::Lrc;
5353
use rustc_errors::{DiagArgFromDisplay, DiagCtxtHandle, StashKey};
5454
use rustc_hir::def::{DefKind, LifetimeRes, Namespace, PartialRes, PerNS, Res};
5555
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};
5757
use rustc_hir::{
5858
ConstArg, GenericArg, HirId, ItemLocalMap, MissingLifetimeKind, ParamName, TraitCandidate,
5959
};
@@ -126,7 +126,7 @@ struct LoweringContext<'a, 'hir> {
126126
/// they do get their own DefIds. Some of these DefIds have to be created during
127127
/// AST lowering, rather than def collection, because we can't tell until after
128128
/// 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
130130
/// available to an anonymous constant nested inside another, we need to make
131131
/// sure that the parent is recorded as the parent anon const, not the enclosing
132132
/// item. So we need to track parent defs differently from HIR owners, since they
@@ -1207,7 +1207,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
12071207
ImplTraitContext::Disallowed(ImplTraitPosition::Path),
12081208
None,
12091209
);
1210-
ConstArgKind::Path(qpath)
1210+
hir::ConstArgKind::Path(qpath)
12111211
}
12121212
_ => {
12131213
// Construct an AnonConst where the expr is the "ty"'s path.
@@ -1287,7 +1287,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
12871287

12881288
return ConstArg {
12891289
hir_id: self.next_id(),
1290-
kind: ConstArgKind::Path(qpath),
1290+
kind: hir::ConstArgKind::Path(qpath),
12911291
is_desugared_from_effects: false,
12921292
};
12931293
}
@@ -1296,7 +1296,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
12961296
self.children.push((lowered_anon.def_id, hir::MaybeOwner::NonOwner(lowered_anon.hir_id)));
12971297
ConstArg {
12981298
hir_id: self.next_id(),
1299-
kind: ConstArgKind::Anon(lowered_anon),
1299+
kind: hir::ConstArgKind::Anon(lowered_anon),
13001300
is_desugared_from_effects: false,
13011301
}
13021302
}

0 commit comments

Comments
 (0)