diff options
| author | Hanzhen Liang <hanzhen.liang@booking.com> | 2021-01-07 13:20:04 +0100 |
|---|---|---|
| committer | Hanzhen Liang <hanzhen.liang@booking.com> | 2021-01-07 13:20:04 +0100 |
| commit | f942c3cbf4a49e7f92215d6ee6a7aff1b4e03e90 (patch) | |
| tree | e588c97255d9c612771f0820ef053c91166b9c5a | |
| parent | bf5f30684a732dbe529cc5ccc031e1fa9e746a2e (diff) | |
| download | rust-f942c3cbf4a49e7f92215d6ee6a7aff1b4e03e90.tar.gz rust-f942c3cbf4a49e7f92215d6ee6a7aff1b4e03e90.zip | |
Return EOF_CHAR constant instead of magic char.
| -rw-r--r-- | compiler/rustc_lexer/src/cursor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lexer/src/cursor.rs b/compiler/rustc_lexer/src/cursor.rs index c0045d3f79b..297f3d19ca1 100644 --- a/compiler/rustc_lexer/src/cursor.rs +++ b/compiler/rustc_lexer/src/cursor.rs @@ -33,7 +33,7 @@ impl<'a> Cursor<'a> { #[cfg(not(debug_assertions))] { - '\0' + EOF_CHAR } } |
