From f942c3cbf4a49e7f92215d6ee6a7aff1b4e03e90 Mon Sep 17 00:00:00 2001 From: Hanzhen Liang Date: Thu, 7 Jan 2021 13:20:04 +0100 Subject: [PATCH] Return EOF_CHAR constant instead of magic char. --- compiler/rustc_lexer/src/cursor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_lexer/src/cursor.rs b/compiler/rustc_lexer/src/cursor.rs index c0045d3f79be1..297f3d19ca178 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 } }