Don't elaborate non-obligations into obligations
This commit is contained in:
parent
96bd50dd47
commit
1ce4b37900
20 changed files with 112 additions and 131 deletions
|
@ -117,7 +117,7 @@ impl<'tcx> MirPass<'tcx> for ConstProp {
|
|||
.filter_map(|(p, _)| if p.is_global() { Some(*p) } else { None });
|
||||
if traits::impossible_predicates(
|
||||
tcx,
|
||||
traits::elaborate_predicates(tcx, predicates).map(|o| o.predicate).collect(),
|
||||
traits::elaborate_predicates(tcx, predicates).collect(),
|
||||
) {
|
||||
trace!("ConstProp skipped for {:?}: found unsatisfiable predicates", def_id);
|
||||
return;
|
||||
|
|
|
@ -93,7 +93,7 @@ impl<'tcx> MirLint<'tcx> for ConstProp {
|
|||
.filter_map(|(p, _)| if p.is_global() { Some(*p) } else { None });
|
||||
if traits::impossible_predicates(
|
||||
tcx,
|
||||
traits::elaborate_predicates(tcx, predicates).map(|o| o.predicate).collect(),
|
||||
traits::elaborate_predicates(tcx, predicates).collect(),
|
||||
) {
|
||||
trace!("ConstProp skipped for {:?}: found unsatisfiable predicates", def_id);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue