1
Fork 0

don't just compare ty::Const

This commit is contained in:
lcnr 2021-07-19 12:13:25 +02:00
parent ab9108b70f
commit 2140016d6c
3 changed files with 46 additions and 0 deletions

View file

@ -129,6 +129,8 @@ impl<'infcx, 'tcx> InferCtxt<'infcx, 'tcx> {
where
R: ConstEquateRelation<'tcx>,
{
let a = self.tcx.expose_default_const_substs(a);
let b = self.tcx.expose_default_const_substs(b);
debug!("{}.consts({:?}, {:?})", relation.tag(), a, b);
if a == b {
return Ok(a);