Skip to content

Commit e4ecfea

Browse files
authored
Rollup merge of #80780 - lianghanzhen:master, r=petrochenkov
Return EOF_CHAR constant instead of magic char.
2 parents 38ccca7 + f942c3c commit e4ecfea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_lexer/src/cursor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ impl<'a> Cursor<'a> {
3333

3434
#[cfg(not(debug_assertions))]
3535
{
36-
'\0'
36+
EOF_CHAR
3737
}
3838
}
3939

0 commit comments

Comments
 (0)