Skip to content

Commit d5526ff

Browse files
committed
Reorder StrLit fields.
To better match `MetaItemLit`.
1 parent 2fd364a commit d5526ff

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

compiler/rustc_ast/src/ast.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -1746,13 +1746,14 @@ pub struct MetaItemLit {
17461746
/// Similar to `MetaItemLit`, but restricted to string literals.
17471747
#[derive(Clone, Copy, Encodable, Decodable, Debug)]
17481748
pub struct StrLit {
1749-
/// The original literal token as written in source code.
1750-
pub style: StrStyle,
1749+
/// The original literal as written in source code.
17511750
pub symbol: Symbol,
1751+
/// The original suffix as written in source code.
17521752
pub suffix: Option<Symbol>,
1753-
pub span: Span,
1754-
/// The unescaped "semantic" representation of the literal lowered from the original token.
1753+
/// The semantic (unescaped) representation of the literal.
17551754
pub symbol_unescaped: Symbol,
1755+
pub style: StrStyle,
1756+
pub span: Span,
17561757
}
17571758

17581759
impl StrLit {

0 commit comments

Comments
 (0)