Open
Description
minimal range analysis (lots of snippets like
if x == 0 { return; } x -= 1;
around, for example) to eliminate false positives (range analysis by itself can provide useful optimizations)
the hardest thing to reason about is thatv1.len() + v2.len()
can't ever overflow ifv1, v2: Vec<T>
andsize_of::<T>() > 0
idea by @eddyb https://botbot.me/mozilla/rust-internals/2016-05-27/?msg=66824497&page=3