remap ParamEnv with obligation

This commit is contained in:
Deadbeef
2022-09-16 11:38:28 +08:00
parent 08aeb1aa9b
commit 5ead742e18
4 changed files with 24 additions and 8 deletions

View File

@@ -861,6 +861,11 @@ impl<'tcx> TraitPredicate<'tcx> {
(BoundConstness::ConstIfConst, hir::Constness::NotConst) => false,
}
}
pub fn without_const(mut self) -> Self {
self.constness = BoundConstness::NotConst;
self
}
}
impl<'tcx> PolyTraitPredicate<'tcx> {