Skip to content

Commit 05329e5

Browse files
committed
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.
1 parent b16c7a2 commit 05329e5

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)