]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_lexer/src/lib.rs
Rollup merge of #106216 - ChrisDenton:ps-go-faster, r=jyn514
[rust.git] / compiler / rustc_lexer / src / lib.rs
index 3fbabbc6344a7f3518b10e11b1869bb78d9fd948..4c65fca29b89721542148dcfadf447bee9f7048b 100644 (file)
@@ -34,7 +34,6 @@
 use self::LiteralKind::*;
 use self::TokenKind::*;
 use crate::cursor::EOF_CHAR;
-use std::convert::TryFrom;
 
 /// Parsed token.
 /// It doesn't contain information about data that has been parsed,
@@ -852,7 +851,7 @@ fn eat_literal_suffix(&mut self) {
     }
 
     // Eats the identifier. Note: succeeds on `_`, which isn't a valid
-    // identifer.
+    // identifier.
     fn eat_identifier(&mut self) {
         if !is_id_start(self.first()) {
             return;