don't just compare ty::Const
This commit is contained in:
parent
ab9108b70f
commit
2140016d6c
3 changed files with 46 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue