Skip to content

Commit 3e362a4

Browse files
committed
make unwrap_or_abort non-generic again
1 parent 3035a05 commit 3e362a4

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
@@ -101,7 +101,7 @@ impl<'a> StringReader<'a> {
101101
self.override_span.unwrap_or_else(|| Span::new(lo, hi, NO_EXPANSION))
102102
}
103103

104-
fn unwrap_or_abort<T>(&mut self, res: Result<T, ()>) -> T {
104+
fn unwrap_or_abort(&mut self, res: Result<Token, ()>) -> Token {
105105
match res {
106106
Ok(tok) => tok,
107107
Err(_) => {

0 commit comments

Comments
 (0)