We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Deref
Parser
1 parent 3da0943 commit 6eae6b0Copy full SHA for 6eae6b0
src/libsyntax/parse/parser.rs
@@ -58,7 +58,6 @@ use log::debug;
58
use std::borrow::Cow;
59
use std::cmp;
60
use std::mem;
61
-use std::ops::Deref;
62
use std::path::{self, Path, PathBuf};
63
use std::slice;
64
@@ -251,15 +250,6 @@ impl<'a> Drop for Parser<'a> {
251
250
}
252
253
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
-
263
#[derive(Clone)]
264
crate struct TokenCursor {
265
crate frame: TokenCursorFrame,
0 commit comments