about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-01-03 14:44:20 +0100
committerGitHub <noreply@github.com>2022-01-03 14:44:20 +0100
commitdf921190f3e8236892094a0f45aa5cc77e10f3d2 (patch)
treed47b205f814bbfac2729822ac63d3bcb3c5b60c3 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent92f28bda38500e9ba33399e49c297323968109d1 (diff)
parent8d7cf1a4cae07489c375af7bd03923012774dadd (diff)
downloadrust-df921190f3e8236892094a0f45aa5cc77e10f3d2.tar.gz
rust-df921190f3e8236892094a0f45aa5cc77e10f3d2.zip
Rollup merge of #92418 - dtolnay:emptystructpat, r=michaelwoerister
Fix spacing in pretty printed PatKind::Struct with no fields

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

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

fn main() {
    println!("{}", repro!(Struct {}));
}
```

Before:&ensp;<code>Struct&nbsp;{&nbsp;&nbsp;}</code>
After:&ensp;<code>Struct&nbsp;{}</code>
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions