about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-05-04 21:35:29 -0400
committerGitHub <noreply@github.com>2017-05-04 21:35:29 -0400
commita9b0b5e4c36e97b6cb62f8a00f4823ca8ebf2988 (patch)
tree12407dd64a6746cb90b5464ca5de6bdf517e6dd3 /src/libsyntax
parent63e477d51d59c257e3b71aca2350867bf8b78e59 (diff)
parent05329e578014ee1e9a0a45658e5fba60f6b06e83 (diff)
downloadrust-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')
-rw-r--r--src/libsyntax/parse/lexer/mod.rs2
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)
     }