Skip to content

Commit e56cb87

Browse files
committed
syntax: Replace unstable vec.as_slice().get() with vec.get()
1 parent c7640aa commit e56cb87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/codemap.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ impl MultiSpan {
341341
for idx in 0.. {
342342
if let Some(sp_trim) = sp.trim_start(prev) {
343343
// Implies `sp.hi > prev.hi`
344-
let cur = match self.spans.as_slice().get(idx) {
344+
let cur = match self.spans.get(idx) {
345345
Some(s) => *s,
346346
None => {
347347
sp = sp_trim;

0 commit comments

Comments
 (0)