Skip to content

Commit 2a4455d

Browse files
authored
Rollup merge of #109713 - dtolnay:debugattrid, r=compiler-errors
Fix mismatched punctuation in Debug impl of AttrId I noticed this odd line in `ast-tree` output. ```console $ echo '#[attr] struct S;' | rustc -Zunpretty=ast-tree - ``` ```rust ... attrs: [ Attribute { kind: Normal( NormalAttr { item: AttrItem { path: Path { segments: [ PathSegment { ident: attr#0, args: None, }, ], tokens: None, }, args: Empty, }, }, ), id: AttrId(0)], // <------ style: Outer, }, ```
2 parents 09e9377 + c5da061 commit 2a4455d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_ast/src/ast.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2570,7 +2570,7 @@ pub enum AttrStyle {
25702570

25712571
rustc_index::newtype_index! {
25722572
#[custom_encodable]
2573-
#[debug_format = "AttrId({})]"]
2573+
#[debug_format = "AttrId({})"]
25742574
pub struct AttrId {}
25752575
}
25762576

0 commit comments

Comments
 (0)