No lifetime on PlaceholderConst
This commit is contained in:
@@ -222,7 +222,7 @@ pub enum CanonicalVarKind<'tcx> {
|
||||
Effect,
|
||||
|
||||
/// A "placeholder" that represents "any const".
|
||||
PlaceholderConst(ty::PlaceholderConst<'tcx>, Ty<'tcx>),
|
||||
PlaceholderConst(ty::PlaceholderConst, Ty<'tcx>),
|
||||
}
|
||||
|
||||
impl<'tcx> CanonicalVarKind<'tcx> {
|
||||
|
||||
@@ -84,7 +84,7 @@ impl<'tcx> Const<'tcx> {
|
||||
#[inline]
|
||||
pub fn new_placeholder(
|
||||
tcx: TyCtxt<'tcx>,
|
||||
placeholder: ty::PlaceholderConst<'tcx>,
|
||||
placeholder: ty::PlaceholderConst,
|
||||
ty: Ty<'tcx>,
|
||||
) -> Const<'tcx> {
|
||||
Const::new(tcx, ty::ConstKind::Placeholder(placeholder), ty)
|
||||
|
||||
@@ -106,7 +106,7 @@ impl<'tcx> Interner for TyCtxt<'tcx> {
|
||||
type Const = ty::Const<'tcx>;
|
||||
type InferConst = ty::InferConst;
|
||||
type AliasConst = ty::UnevaluatedConst<'tcx>;
|
||||
type PlaceholderConst = ty::PlaceholderConst<'tcx>;
|
||||
type PlaceholderConst = ty::PlaceholderConst;
|
||||
type ParamConst = ty::ParamConst;
|
||||
type BoundConst = ty::BoundVar;
|
||||
type ValueConst = ty::ValTree<'tcx>;
|
||||
|
||||
@@ -1527,7 +1527,7 @@ pub struct BoundConst<'tcx> {
|
||||
pub ty: Ty<'tcx>,
|
||||
}
|
||||
|
||||
pub type PlaceholderConst<'tcx> = Placeholder<BoundVar>;
|
||||
pub type PlaceholderConst = Placeholder<BoundVar>;
|
||||
|
||||
/// When type checking, we use the `ParamEnv` to track
|
||||
/// details about the set of where-clauses that are in scope at this
|
||||
|
||||
Reference in New Issue
Block a user