Update to use newer Rust features.

This re-introduces several cleanups that we previously deferred for not
supporting Rust 1.25.
This commit is contained in:
Dan Gohman
2018-10-24 11:10:20 -07:00
parent 62e55f63e6
commit 9471c06da4
11 changed files with 14 additions and 33 deletions

View File

@@ -127,7 +127,7 @@ fn maybe_resolve_aliases(values: &PrimaryMap<Value, ValueData>, value: Value) ->
let mut v = value;
// Note that values may be empty here.
for _ in 0..values.len() + 1 {
for _ in 0..=values.len() {
if let ValueData::Alias { original, .. } = values[v] {
v = original;
} else {