Remove a function that doesn't actually do anything
This commit is contained in:
parent
f42e490d6f
commit
11ae334f07
@ -3,7 +3,7 @@
|
|||||||
use rustc_infer::traits::PredicateObligations;
|
use rustc_infer::traits::PredicateObligations;
|
||||||
use rustc_middle::mir::ConstraintCategory;
|
use rustc_middle::mir::ConstraintCategory;
|
||||||
use rustc_middle::ty::relate::TypeRelation;
|
use rustc_middle::ty::relate::TypeRelation;
|
||||||
use rustc_middle::ty::{self, Const, Ty};
|
use rustc_middle::ty::{self, Ty};
|
||||||
use rustc_span::Span;
|
use rustc_span::Span;
|
||||||
use rustc_trait_selection::traits::query::Fallible;
|
use rustc_trait_selection::traits::query::Fallible;
|
||||||
|
|
||||||
@ -140,13 +140,6 @@ fn push_outlives(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// We don't have to worry about the equality of consts during borrow checking
|
|
||||||
// as consts always have a static lifetime.
|
|
||||||
// FIXME(oli-obk): is this really true? We can at least have HKL and with
|
|
||||||
// inline consts we may have further lifetimes that may be unsound to treat as
|
|
||||||
// 'static.
|
|
||||||
fn const_equate(&mut self, _a: Const<'tcx>, _b: Const<'tcx>) {}
|
|
||||||
|
|
||||||
fn normalization() -> NormalizationStrategy {
|
fn normalization() -> NormalizationStrategy {
|
||||||
NormalizationStrategy::Eager
|
NormalizationStrategy::Eager
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
use rustc_middle::ty::fold::TypeFoldable;
|
use rustc_middle::ty::fold::TypeFoldable;
|
||||||
use rustc_middle::ty::relate::TypeRelation;
|
use rustc_middle::ty::relate::TypeRelation;
|
||||||
use rustc_middle::ty::subst::{GenericArg, GenericArgKind};
|
use rustc_middle::ty::subst::{GenericArg, GenericArgKind};
|
||||||
use rustc_middle::ty::{self, BoundVar, Const, ToPredicate, Ty, TyCtxt};
|
use rustc_middle::ty::{self, BoundVar, ToPredicate, Ty, TyCtxt};
|
||||||
use rustc_span::Span;
|
use rustc_span::Span;
|
||||||
use std::fmt::Debug;
|
use std::fmt::Debug;
|
||||||
use std::iter;
|
use std::iter;
|
||||||
@ -728,10 +728,6 @@ fn push_outlives(
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
fn const_equate(&mut self, _a: Const<'tcx>, _b: Const<'tcx>) {
|
|
||||||
span_bug!(self.cause.span(), "generic_const_exprs: unreachable `const_equate`");
|
|
||||||
}
|
|
||||||
|
|
||||||
fn normalization() -> NormalizationStrategy {
|
fn normalization() -> NormalizationStrategy {
|
||||||
NormalizationStrategy::Eager
|
NormalizationStrategy::Eager
|
||||||
}
|
}
|
||||||
|
@ -92,7 +92,6 @@ fn push_outlives(
|
|||||||
info: ty::VarianceDiagInfo<'tcx>,
|
info: ty::VarianceDiagInfo<'tcx>,
|
||||||
);
|
);
|
||||||
|
|
||||||
fn const_equate(&mut self, a: ty::Const<'tcx>, b: ty::Const<'tcx>);
|
|
||||||
fn register_obligations(&mut self, obligations: Vec<PredicateObligation<'tcx>>);
|
fn register_obligations(&mut self, obligations: Vec<PredicateObligation<'tcx>>);
|
||||||
|
|
||||||
/// Creates a new universe index. Used when instantiating placeholders.
|
/// Creates a new universe index. Used when instantiating placeholders.
|
||||||
@ -812,8 +811,12 @@ impl<'tcx, D> ConstEquateRelation<'tcx> for TypeRelating<'_, 'tcx, D>
|
|||||||
where
|
where
|
||||||
D: TypeRelatingDelegate<'tcx>,
|
D: TypeRelatingDelegate<'tcx>,
|
||||||
{
|
{
|
||||||
fn const_equate_obligation(&mut self, a: ty::Const<'tcx>, b: ty::Const<'tcx>) {
|
fn const_equate_obligation(&mut self, _a: ty::Const<'tcx>, _b: ty::Const<'tcx>) {
|
||||||
self.delegate.const_equate(a, b);
|
// We don't have to worry about the equality of consts during borrow checking
|
||||||
|
// as consts always have a static lifetime.
|
||||||
|
// FIXME(oli-obk): is this really true? We can at least have HKL and with
|
||||||
|
// inline consts we may have further lifetimes that may be unsound to treat as
|
||||||
|
// 'static.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user