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 24, 2022
1 parent 281cc7d commit dac6920
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 @@ -1709,7 +1709,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 @@ -1718,7 +1718,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 dac6920

Please sign in to comment.