Found suspicious comparison of constants
This commit is contained in:
parent
bbbdcb327f
commit
4e1a5968f1
@ -117,6 +117,9 @@ impl<'tcx> TypeRelatingDelegate<'tcx> for NllTypeRelatingDelegate<'_, '_, 'tcx>
|
|||||||
|
|
||||||
// We don't have to worry about the equality of consts during borrow checking
|
// We don't have to worry about the equality of consts during borrow checking
|
||||||
// as consts always have a static lifetime.
|
// 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: &'tcx Const<'tcx>, _b: &'tcx Const<'tcx>) {}
|
fn const_equate(&mut self, _a: &'tcx Const<'tcx>, _b: &'tcx Const<'tcx>) {}
|
||||||
|
|
||||||
fn normalization() -> NormalizationStrategy {
|
fn normalization() -> NormalizationStrategy {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user