mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
efe415878b
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:
|
||
---|---|---|
.. | ||
src | ||
Cargo.toml |