about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2021-01-08 02:06:18 +0900
committerGitHub <noreply@github.com>2021-01-08 02:06:18 +0900
commit695f18ebab0ca895841514da841eb3bd6f6bbd88 (patch)
treeb2f4a75f2da9a926802464f34563564ea8d7ac90
parenta97dc5f1036305694752c6720f7b71d5f9915c69 (diff)
parentf942c3cbf4a49e7f92215d6ee6a7aff1b4e03e90 (diff)
downloadrust-695f18ebab0ca895841514da841eb3bd6f6bbd88.tar.gz
rust-695f18ebab0ca895841514da841eb3bd6f6bbd88.zip
Rollup merge of #80780 - lianghanzhen:master, r=petrochenkov
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
         }
     }