diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-06-08 22:38:23 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-06-08 22:38:23 +0300 |
| commit | 25b05147b3ec0a1ed9df9614910a10171b8cf211 (patch) | |
| tree | 40e348a9fd8394e15c873a56c24957131ba3a977 /src/libsyntax/tokenstream.rs | |
| parent | 0ca3c2f881fc4bc51bfa92f1adcd1b845b812534 (diff) | |
| download | rust-25b05147b3ec0a1ed9df9614910a10171b8cf211.tar.gz rust-25b05147b3ec0a1ed9df9614910a10171b8cf211.zip | |
syntax: Remove `Deref` impl from `Token`
Diffstat (limited to 'src/libsyntax/tokenstream.rs')
| -rw-r--r-- | src/libsyntax/tokenstream.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/libsyntax/tokenstream.rs b/src/libsyntax/tokenstream.rs index d46d2f549c0..2daec970279 100644 --- a/src/libsyntax/tokenstream.rs +++ b/src/libsyntax/tokenstream.rs @@ -126,14 +126,6 @@ impl TokenTree { } } - /// Indicates if the stream is a token that is equal to the provided token. - pub fn eq_token(&self, t: TokenKind) -> bool { - match self { - TokenTree::Token(token) => *token == t, - _ => false, - } - } - pub fn joint(self) -> TokenStream { TokenStream::new(vec![(self, Joint)]) } |
