Skip to content

Commit 6eae6b0

Browse files
committed
parser: Remove Deref impl from Parser
1 parent 3da0943 commit 6eae6b0

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/libsyntax/parse/parser.rs

-10
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ use log::debug;
5858
use std::borrow::Cow;
5959
use std::cmp;
6060
use std::mem;
61-
use std::ops::Deref;
6261
use std::path::{self, Path, PathBuf};
6362
use std::slice;
6463

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

254-
// FIXME: Parser uses `self.span` all the time.
255-
// Remove this impl if you think that using `self.token.span` instead is acceptable.
256-
impl Deref for Parser<'_> {
257-
type Target = Token;
258-
fn deref(&self) -> &Self::Target {
259-
&self.token
260-
}
261-
}
262-
263253
#[derive(Clone)]
264254
crate struct TokenCursor {
265255
crate frame: TokenCursorFrame,

0 commit comments

Comments
 (0)