diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-05-04 21:35:29 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-04 21:35:29 -0400 |
| commit | a9b0b5e4c36e97b6cb62f8a00f4823ca8ebf2988 (patch) | |
| tree | 12407dd64a6746cb90b5464ca5de6bdf517e6dd3 /src/libsyntax/parse | |
| parent | 63e477d51d59c257e3b71aca2350867bf8b78e59 (diff) | |
| parent | 05329e578014ee1e9a0a45658e5fba60f6b06e83 (diff) | |
| download | rust-a9b0b5e4c36e97b6cb62f8a00f4823ca8ebf2988.tar.gz rust-a9b0b5e4c36e97b6cb62f8a00f4823ca8ebf2988.zip | |
Rollup merge of #41746 - tommyip:master, r=petrochenkov
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')
| -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) } |
