about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHanzhen Liang <hanzhen.liang@booking.com>2021-01-07 13:20:04 +0100
committerHanzhen Liang <hanzhen.liang@booking.com>2021-01-07 13:20:04 +0100
commitf942c3cbf4a49e7f92215d6ee6a7aff1b4e03e90 (patch)
treee588c97255d9c612771f0820ef053c91166b9c5a
parentbf5f30684a732dbe529cc5ccc031e1fa9e746a2e (diff)
downloadrust-f942c3cbf4a49e7f92215d6ee6a7aff1b4e03e90.tar.gz
rust-f942c3cbf4a49e7f92215d6ee6a7aff1b4e03e90.zip
Return EOF_CHAR constant instead of magic char.
-rw-r--r--compiler/rustc_lexer/src/cursor.rs2
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
         }
     }