Skip to content

Commit

Permalink
syntax: Replace unstable vec.as_slice().get() with vec.get()
Browse files Browse the repository at this point in the history
  • Loading branch information
erickt committed Feb 12, 2016
1 parent c7640aa commit e56cb87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsyntax/codemap.rs
Expand Up @@ -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;
Expand Down

0 comments on commit e56cb87

Please sign in to comment.