mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +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 |