Skip to content

Commit

Permalink
Rollup merge of rust-lang#80780 - lianghanzhen:master, r=petrochenkov
Browse files Browse the repository at this point in the history
Return EOF_CHAR constant instead of magic char.
  • Loading branch information
Dylan-DPC authored Jan 7, 2021
2 parents 38ccca7 + f942c3c commit e4ecfea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_lexer/src/cursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl<'a> Cursor<'a> {

#[cfg(not(debug_assertions))]
{
'\0'
EOF_CHAR
}
}

Expand Down

0 comments on commit e4ecfea

Please sign in to comment.