]> git.lizzy.rs Git - rust.git/commitdiff
Adjust comments on `StrLit`.
authorNicholas Nethercote <n.nethercote@gmail.com>
Thu, 24 Nov 2022 21:18:57 +0000 (08:18 +1100)
committerNicholas Nethercote <n.nethercote@gmail.com>
Mon, 28 Nov 2022 04:18:52 +0000 (15:18 +1100)
compiler/rustc_ast/src/ast.rs

index 5d470f1c453fe46e67514144555cdd364146d632..3b6716de710b0e11ded84c94c91de50784598219 100644 (file)
@@ -1737,7 +1737,7 @@ pub struct MetaItemLit {
     pub span: Span,
 }
 
-/// Same as `Lit`, but restricted to string literals.
+/// Similar to `MetaItemLit`, but restricted to string literals.
 #[derive(Clone, Copy, Encodable, Decodable, Debug)]
 pub struct StrLit {
     /// The original literal token as written in source code.
@@ -1746,7 +1746,6 @@ pub struct StrLit {
     pub suffix: Option<Symbol>,
     pub span: Span,
     /// The unescaped "semantic" representation of the literal lowered from the original token.
-    /// FIXME: Remove this and only create the semantic representation during lowering to HIR.
     pub symbol_unescaped: Symbol,
 }