rollup merge of #18445 : alexcrichton/index-mut
Conflicts: src/libcollections/vec.rs
This commit is contained in:
commit
c10c163377
46 changed files with 165 additions and 271 deletions
|
@ -1231,7 +1231,7 @@ impl Stack {
|
|||
InternalIndex(i) => { i + 1 }
|
||||
_ => { panic!(); }
|
||||
};
|
||||
*self.stack.get_mut(len - 1) = InternalIndex(idx);
|
||||
self.stack[len - 1] = InternalIndex(idx);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue