Skip to content

Commit 28d17e5

Browse files
authored
Rollup merge of rust-lang#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 rust-lang#33506.
2 parents 20c6b89 + 05329e5 commit 28d17e5

File tree

1 file changed

+1
-1
lines changed
  • src/libsyntax/parse/lexer

1 file changed

+1
-1
lines changed

src/libsyntax/parse/lexer/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ fn mk_sp(lo: BytePos, hi: BytePos) -> Span {
7373
}
7474

7575
impl<'a> StringReader<'a> {
76-
fn next_token(&mut self) -> TokenAndSpan where Self: Sized {
76+
fn next_token(&mut self) -> TokenAndSpan {
7777
let res = self.try_next_token();
7878
self.unwrap_or_abort(res)
7979
}

0 commit comments

Comments
 (0)