diff options
| author | Tommy Ip <hkmp7tommy@gmail.com> | 2017-05-04 13:14:39 +0100 |
|---|---|---|
| committer | Tommy Ip <hkmp7tommy@gmail.com> | 2017-05-04 13:19:36 +0100 |
| commit | 05329e578014ee1e9a0a45658e5fba60f6b06e83 (patch) | |
| tree | aeae73de3c4104f172973882a8e61b0c8f4f7324 /src/libsyntax/parse/lexer | |
| parent | b16c7a235fa0f57fed6b7ec13ffd3cff1bcdd9ad (diff) | |
| download | rust-05329e578014ee1e9a0a45658e5fba60f6b06e83.tar.gz rust-05329e578014ee1e9a0a45658e5fba60f6b06e83.zip | |
Remove use of `Self: Sized` from libsyntax
The bound is not required for compiling but it prevents using `next_token()` from a trait object. Fixes #33506.
Diffstat (limited to 'src/libsyntax/parse/lexer')
| -rw-r--r-- | src/libsyntax/parse/lexer/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/lexer/mod.rs b/src/libsyntax/parse/lexer/mod.rs index c2e5763237d..7d2a1b3c4a4 100644 --- a/src/libsyntax/parse/lexer/mod.rs +++ b/src/libsyntax/parse/lexer/mod.rs @@ -73,7 +73,7 @@ fn mk_sp(lo: BytePos, hi: BytePos) -> Span { } impl<'a> StringReader<'a> { - fn next_token(&mut self) -> TokenAndSpan where Self: Sized { + fn next_token(&mut self) -> TokenAndSpan { let res = self.try_next_token(); self.unwrap_or_abort(res) } |
