Make elaborator generic
This commit is contained in:
parent
de74dab880
commit
758bedc104
21 changed files with 163 additions and 155 deletions
|
@ -91,10 +91,7 @@ impl<'tcx> MirLint<'tcx> for ConstProp {
|
|||
.predicates
|
||||
.iter()
|
||||
.filter_map(|(p, _)| if p.is_global() { Some(*p) } else { None });
|
||||
if traits::impossible_predicates(
|
||||
tcx,
|
||||
traits::elaborate_predicates(tcx, predicates).collect(),
|
||||
) {
|
||||
if traits::impossible_predicates(tcx, traits::elaborate(tcx, predicates).collect()) {
|
||||
trace!("ConstProp skipped for {:?}: found unsatisfiable predicates", def_id);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue