diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-09-28 10:28:36 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2022-09-28 11:15:23 +1000 |
| commit | d0a26acb2ae2d000e516eca92ae8feb08d1f6ea0 (patch) | |
| tree | eade9bfbafbc49a3c083da51d9ae0a90010dcf4b /compiler/rustc_lexer | |
| parent | 7f7e2165b1f1a271c6708f2a54c940bdaa254eb2 (diff) | |
| download | rust-d0a26acb2ae2d000e516eca92ae8feb08d1f6ea0.tar.gz rust-d0a26acb2ae2d000e516eca92ae8feb08d1f6ea0.zip | |
Address review comments.
Diffstat (limited to 'compiler/rustc_lexer')
| -rw-r--r-- | compiler/rustc_lexer/src/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/rustc_lexer/src/lib.rs b/compiler/rustc_lexer/src/lib.rs index 18ebed7c70e..c71e6ffe34d 100644 --- a/compiler/rustc_lexer/src/lib.rs +++ b/compiler/rustc_lexer/src/lib.rs @@ -23,15 +23,17 @@ // We want to be able to build this crate with a stable compiler, so no // `#![feature]` attributes should be added. -pub mod cursor; +mod cursor; pub mod unescape; #[cfg(test)] mod tests; +pub use crate::cursor::Cursor; + use self::LiteralKind::*; use self::TokenKind::*; -use crate::cursor::{Cursor, EOF_CHAR}; +use crate::cursor::EOF_CHAR; use std::convert::TryFrom; /// Parsed token. |
