about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-11-25 08:18:57 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2022-11-28 15:18:52 +1100
commit1c65264f3cbfb9b6e4b06ff0a89fc706f2d20a85 (patch)
tree86ea5a06c165334e3533aebd5978fe1fd4f3c2cd
parente4a9150872a08db286208d07f5a6a90e466ca39c (diff)
downloadrust-1c65264f3cbfb9b6e4b06ff0a89fc706f2d20a85.tar.gz
rust-1c65264f3cbfb9b6e4b06ff0a89fc706f2d20a85.zip
Adjust comments on `StrLit`.
-rw-r--r--compiler/rustc_ast/src/ast.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs
index 5d470f1c453..3b6716de710 100644
--- a/compiler/rustc_ast/src/ast.rs
+++ b/compiler/rustc_ast/src/ast.rs
@@ -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,
 }