diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-01-01 10:48:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-01 10:48:56 +0100 |
| commit | efe415878bb11323f40e9df19f9731e6480b7e55 (patch) | |
| tree | 8256f68fa10e2485febbf144598e287161359f4d /compiler/rustc_codegen_gcc | |
| parent | 682b4cbc4ee64fd3c4c548061e126496774f1435 (diff) | |
| parent | bc1a1ff3c86a12555e8cb430fd8ed608201ccb14 (diff) | |
| download | rust-efe415878bb11323f40e9df19f9731e6480b7e55.tar.gz rust-efe415878bb11323f40e9df19f9731e6480b7e55.zip | |
Rollup merge of #92420 - dtolnay:patrange, r=Mark-Simulacrum
Fix whitespace in pretty printed PatKind::Range
Follow-up to #92238 fixing one of the FIXMEs.
```rust
macro_rules! repro {
($pat:pat) => {
stringify!($pat)
};
}
fn main() {
println!("{}", repro!(0..=1));
}
```
Before: `0 ..=1`
After: `0..=1`
The canonical spacing applied by rustfmt has no space after the lower expr. Rustc's parser diagnostics also do not put a space there:
https://github.com/rust-lang/rust/blob/df96fb166f59431e3de443835e50d5b8a7a4adb0/compiler/rustc_parse/src/parser/pat.rs#L754
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
