Commit 514993df authored by Jeff Smits's avatar Jeff Smits

Fixed bug where only Id was kept in strategy sequences

parent 0268c59f
......@@ -335,7 +335,7 @@ impl<'s> CTreeOptimize for preprocess::Strategy<'s> {
.map(|s| s.optimize(c))
// Identity strategies in a sequence don't do anything
// (These may be eliminated `Match`es of aliases)
.filter(|s| *s == Strategy::Id).collect::<Vec<_>>();
.filter(|s| *s != Strategy::Id).collect::<Vec<_>>();
// Once the collect call is made the ids are dealt with
// Now we remove double builds if the first one cannot fail
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment