about summary refs log tree commit diff
path: root/src/librustdoc/html/static/js/source-script.js
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-12-30 13:12:34 +0100
committerGitHub <noreply@github.com>2021-12-30 13:12:34 +0100
commite810487b4de6e5122b802fea03f4b10c79d32467 (patch)
treec8e593f5330c24499b0093e4e7268c39f708c1c8 /src/librustdoc/html/static/js/source-script.js
parentb9f7197ab35f79b4df1f60104b9d8af9e77bb566 (diff)
parentb62163515ad109dad05985b958c98a001dbcd89b (diff)
downloadrust-e810487b4de6e5122b802fea03f4b10c79d32467.tar.gz
rust-e810487b4de6e5122b802fea03f4b10c79d32467.zip
Rollup merge of #92414 - dtolnay:constnoexpr, r=oli-obk
Fix spacing of pretty printed const item without body

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

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

fn main() {
    println!("{}", repro!(extern "C" { static S: i32; }));
}
```

Before:&ensp;`extern "C" { static S: i32 ; }`
After:&ensp;`extern "C" { static S: i32; }`
Diffstat (limited to 'src/librustdoc/html/static/js/source-script.js')
0 files changed, 0 insertions, 0 deletions