Skip to content

Commit

Permalink
Remove use of Self: Sized from libsyntax
Browse files Browse the repository at this point in the history
The bound is not required for compiling but it prevents using `next_token()` from a trait object.

Fixes rust-lang#33506.
  • Loading branch information
tommyip committed May 4, 2017
1 parent b16c7a2 commit 05329e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsyntax/parse/lexer/mod.rs
Expand Up @@ -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)
}
Expand Down

0 comments on commit 05329e5

Please sign in to comment.