Skip to content

Commit

Permalink
Adjust comments on StrLit.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Nov 28, 2022
1 parent e4a9150 commit 1c65264
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/rustc_ast/src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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,
}

Expand Down

0 comments on commit 1c65264

Please sign in to comment.