Skip to content
Permalink
Browse files

parser: Remove `Deref` impl from `Parser`

  • Loading branch information...
petrochenkov committed Jun 7, 2019
1 parent 3da0943 commit 6eae6b0fe9da99f54f2f4ef1bf604d5e9deb367f
Showing with 0 additions and 10 deletions.
  1. +0 −10 src/libsyntax/parse/parser.rs
@@ -58,7 +58,6 @@ use log::debug;
use std::borrow::Cow;
use std::cmp;
use std::mem;
use std::ops::Deref;
use std::path::{self, Path, PathBuf};
use std::slice;

@@ -251,15 +250,6 @@ impl<'a> Drop for Parser<'a> {
}
}

// FIXME: Parser uses `self.span` all the time.
// Remove this impl if you think that using `self.token.span` instead is acceptable.
impl Deref for Parser<'_> {
type Target = Token;
fn deref(&self) -> &Self::Target {
&self.token
}
}

#[derive(Clone)]
crate struct TokenCursor {
crate frame: TokenCursorFrame,

0 comments on commit 6eae6b0

Please sign in to comment.
You can’t perform that action at this time.