mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-20 10:55:14 +00:00
syntax: Replace unstable vec.as_slice().get()
with vec.get()
This commit is contained in:
parent
c7640aa2aa
commit
e56cb87f30
@ -341,7 +341,7 @@ impl MultiSpan {
|
||||
for idx in 0.. {
|
||||
if let Some(sp_trim) = sp.trim_start(prev) {
|
||||
// Implies `sp.hi > prev.hi`
|
||||
let cur = match self.spans.as_slice().get(idx) {
|
||||
let cur = match self.spans.get(idx) {
|
||||
Some(s) => *s,
|
||||
None => {
|
||||
sp = sp_trim;
|
||||
|
Loading…
Reference in New Issue
Block a user