about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-01-06 23:15:16 +0100
committerGitHub <noreply@github.com>2022-01-06 23:15:16 +0100
commit1a8f69826c75a65acb018a183610e4b1cb32c46d (patch)
treeea5db60f5bc134d89e3ce5c5961b4ca4d7cd7711 /compiler/rustc_llvm/llvm-wrapper
parent0604cf5fd8aacb5eee6a627066e11ca3b5f48cf2 (diff)
parenta24e238bdf07b2e59f5d3af376647742a6d7f05a (diff)
downloadrust-1a8f69826c75a65acb018a183610e4b1cb32c46d.tar.gz
rust-1a8f69826c75a65acb018a183610e4b1cb32c46d.zip
Rollup merge of #92417 - dtolnay:printimpl, r=jackh726
Fix spacing and ordering of words in pretty printed Impl

Follow-up to #92238 fixing one of the FIXMEs.

```rust
macro_rules! repro {
    ($item:item) => {
        stringify!($item)
    };
}

fn main() {
    println!("{}", repro!(impl<T> Struct<T> {}));
    println!("{}", repro!(impl<T> const Trait for T {}));
}
```

Before:&ensp;`impl <T> Struct<T> {}`
After:&ensp;`impl<T> Struct<T> {}`

Before:&ensp;`impl const <T> Trait for T {}` :crying_cat_face:
After:&ensp;`impl<T> const Trait for T {}`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
0 files changed, 0 insertions, 0 deletions