Skip to content

Commit 7840a10

Browse files
authored
Unrolled build for rust-lang#117583
Rollup merge of rust-lang#117583 - compiler-errors:placeholderconst-lifetime, r=cjgillot Remove `'tcx` lifetime on `PlaceholderConst` The `'tcx` lifetime is not needed for anything, so this is a continuation of rust-lang#117139.
2 parents a42d94e + bcb97ea commit 7840a10

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

compiler/rustc_middle/src/infer/canonical.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ pub enum CanonicalVarKind<'tcx> {
222222
Effect,
223223

224224
/// A "placeholder" that represents "any const".
225-
PlaceholderConst(ty::PlaceholderConst<'tcx>, Ty<'tcx>),
225+
PlaceholderConst(ty::PlaceholderConst, Ty<'tcx>),
226226
}
227227

228228
impl<'tcx> CanonicalVarKind<'tcx> {

compiler/rustc_middle/src/ty/consts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ impl<'tcx> Const<'tcx> {
8484
#[inline]
8585
pub fn new_placeholder(
8686
tcx: TyCtxt<'tcx>,
87-
placeholder: ty::PlaceholderConst<'tcx>,
87+
placeholder: ty::PlaceholderConst,
8888
ty: Ty<'tcx>,
8989
) -> Const<'tcx> {
9090
Const::new(tcx, ty::ConstKind::Placeholder(placeholder), ty)

compiler/rustc_middle/src/ty/context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl<'tcx> Interner for TyCtxt<'tcx> {
106106
type Const = ty::Const<'tcx>;
107107
type InferConst = ty::InferConst;
108108
type AliasConst = ty::UnevaluatedConst<'tcx>;
109-
type PlaceholderConst = ty::PlaceholderConst<'tcx>;
109+
type PlaceholderConst = ty::PlaceholderConst;
110110
type ParamConst = ty::ParamConst;
111111
type BoundConst = ty::BoundVar;
112112
type ValueConst = ty::ValTree<'tcx>;

compiler/rustc_middle/src/ty/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,7 @@ pub struct BoundConst<'tcx> {
15271527
pub ty: Ty<'tcx>,
15281528
}
15291529

1530-
pub type PlaceholderConst<'tcx> = Placeholder<BoundVar>;
1530+
pub type PlaceholderConst = Placeholder<BoundVar>;
15311531

15321532
/// When type checking, we use the `ParamEnv` to track
15331533
/// details about the set of where-clauses that are in scope at this

compiler/rustc_trait_selection/src/traits/project.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ pub struct BoundVarReplacer<'me, 'tcx> {
783783
// the `var` (but we *could* bring that into scope if we were to track them as we pass them).
784784
mapped_regions: BTreeMap<ty::PlaceholderRegion, ty::BoundRegion>,
785785
mapped_types: BTreeMap<ty::PlaceholderType, ty::BoundTy>,
786-
mapped_consts: BTreeMap<ty::PlaceholderConst<'tcx>, ty::BoundVar>,
786+
mapped_consts: BTreeMap<ty::PlaceholderConst, ty::BoundVar>,
787787
// The current depth relative to *this* folding, *not* the entire normalization. In other words,
788788
// the depth of binders we've passed here.
789789
current_index: ty::DebruijnIndex,
@@ -843,11 +843,11 @@ impl<'me, 'tcx> BoundVarReplacer<'me, 'tcx> {
843843
T,
844844
BTreeMap<ty::PlaceholderRegion, ty::BoundRegion>,
845845
BTreeMap<ty::PlaceholderType, ty::BoundTy>,
846-
BTreeMap<ty::PlaceholderConst<'tcx>, ty::BoundVar>,
846+
BTreeMap<ty::PlaceholderConst, ty::BoundVar>,
847847
) {
848848
let mapped_regions: BTreeMap<ty::PlaceholderRegion, ty::BoundRegion> = BTreeMap::new();
849849
let mapped_types: BTreeMap<ty::PlaceholderType, ty::BoundTy> = BTreeMap::new();
850-
let mapped_consts: BTreeMap<ty::PlaceholderConst<'tcx>, ty::BoundVar> = BTreeMap::new();
850+
let mapped_consts: BTreeMap<ty::PlaceholderConst, ty::BoundVar> = BTreeMap::new();
851851

852852
let mut replacer = BoundVarReplacer {
853853
infcx,
@@ -966,7 +966,7 @@ pub struct PlaceholderReplacer<'me, 'tcx> {
966966
infcx: &'me InferCtxt<'tcx>,
967967
mapped_regions: BTreeMap<ty::PlaceholderRegion, ty::BoundRegion>,
968968
mapped_types: BTreeMap<ty::PlaceholderType, ty::BoundTy>,
969-
mapped_consts: BTreeMap<ty::PlaceholderConst<'tcx>, ty::BoundVar>,
969+
mapped_consts: BTreeMap<ty::PlaceholderConst, ty::BoundVar>,
970970
universe_indices: &'me [Option<ty::UniverseIndex>],
971971
current_index: ty::DebruijnIndex,
972972
}
@@ -976,7 +976,7 @@ impl<'me, 'tcx> PlaceholderReplacer<'me, 'tcx> {
976976
infcx: &'me InferCtxt<'tcx>,
977977
mapped_regions: BTreeMap<ty::PlaceholderRegion, ty::BoundRegion>,
978978
mapped_types: BTreeMap<ty::PlaceholderType, ty::BoundTy>,
979-
mapped_consts: BTreeMap<ty::PlaceholderConst<'tcx>, ty::BoundVar>,
979+
mapped_consts: BTreeMap<ty::PlaceholderConst, ty::BoundVar>,
980980
universe_indices: &'me [Option<ty::UniverseIndex>],
981981
value: T,
982982
) -> T {

0 commit comments

Comments
 (0)