]> git.lizzy.rs Git - rust.git/commitdiff
Return EOF_CHAR constant instead of magic char.
authorHanzhen Liang <hanzhen.liang@booking.com>
Thu, 7 Jan 2021 12:20:04 +0000 (13:20 +0100)
committerHanzhen Liang <hanzhen.liang@booking.com>
Thu, 7 Jan 2021 12:20:04 +0000 (13:20 +0100)
compiler/rustc_lexer/src/cursor.rs

index c0045d3f79be1ffca53fd956aa0251a53d6a8692..297f3d19ca1781eb9cc5494584829b4cda07fd07 100644 (file)
@@ -33,7 +33,7 @@ pub(crate) fn prev(&self) -> char {
 
         #[cfg(not(debug_assertions))]
         {
-            '\0'
+            EOF_CHAR
         }
     }