diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2023-03-29 14:07:30 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-29 14:07:30 +0530 |
| commit | 2a4455d141e651c0ff627998ea484a095ee8b493 (patch) | |
| tree | a13e58c0aa7e08acc2776ff8803cde29cc16f572 | |
| parent | 09e937744ad6e87e751fe874bd33e18e3f73c3f6 (diff) | |
| parent | c5da0619d102493ce39bc36554e14191e964c1b4 (diff) | |
| download | rust-2a4455d141e651c0ff627998ea484a095ee8b493.tar.gz rust-2a4455d141e651c0ff627998ea484a095ee8b493.zip | |
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,
},
```
| -rw-r--r-- | compiler/rustc_ast/src/ast.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs index ab8b7f632e8..cc0fc7b8358 100644 --- a/compiler/rustc_ast/src/ast.rs +++ b/compiler/rustc_ast/src/ast.rs @@ -2570,7 +2570,7 @@ pub enum AttrStyle { rustc_index::newtype_index! { #[custom_encodable] - #[debug_format = "AttrId({})]"] + #[debug_format = "AttrId({})"] pub struct AttrId {} } |
