mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-04 02:54:00 +00:00
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, }, ```
This commit is contained in:
commit
2a4455d141
@ -2570,7 +2570,7 @@ pub enum AttrStyle {
|
||||
|
||||
rustc_index::newtype_index! {
|
||||
#[custom_encodable]
|
||||
#[debug_format = "AttrId({})]"]
|
||||
#[debug_format = "AttrId({})"]
|
||||
pub struct AttrId {}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user