rust/src/test
Matthias Krüger 682b4cbc4e
Rollup merge of #92412 - dtolnay:tryspace, r=Mark-Simulacrum
Fix double space in pretty printed TryBlock

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

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

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

Before:&ensp;<code>try&nbsp;&nbsp;{}</code>
After:&ensp;<code>try&nbsp;{}</code>

The `head` helper already appends a space:

2b67c30bfe/compiler/rustc_ast_pretty/src/pprust/state.rs (L654-L664)

so doing `head` followed by `space` resulted in a double space:

2b67c30bfe/compiler/rustc_ast_pretty/src/pprust/state.rs (L2241-L2242)
2022-01-01 10:48:55 +01:00
..
assembly Auto merge of #88354 - Jmc18134:hint-space-pauth-opt, r=nagisa 2021-12-29 22:35:11 +00:00
auxiliary
codegen Auto merge of #88354 - Jmc18134:hint-space-pauth-opt, r=nagisa 2021-12-29 22:35:11 +00:00
codegen-units Collect panic/panic_bounds_check during monomorphization 2021-10-30 18:21:44 +01:00
debuginfo tests: Ignore test/debuginfo/rc_arc.rs on windows-gnu 2021-11-28 23:09:33 +08:00
incremental Rollup merge of #92405 - bjorn3:more_needs_inline_asm, r=lqd 2021-12-31 23:14:47 +01:00
mir-opt Use panic() instead of panic!() in some places in core. 2021-12-21 10:39:00 +01:00
pretty Move equal sign back into head ibox 2021-12-29 12:26:50 -08:00
run-make Stabilize asm! and global_asm! 2021-12-12 11:20:03 +00:00
run-make-fulldeps Auto merge of #88354 - Jmc18134:hint-space-pauth-opt, r=nagisa 2021-12-29 22:35:11 +00:00
run-pass-valgrind
rustdoc Rollup merge of #91480 - jsha:fewer-colors, r=GuillaumeGomez 2021-12-31 23:14:45 +01:00
rustdoc-gui Rollup merge of #92440 - GuillaumeGomez:fix-mobile-toggles, r=jsha 2021-12-31 23:14:49 +01:00
rustdoc-js Fix warnings in rustdoc JS tests 2021-11-28 11:49:12 -08:00
rustdoc-js-std Fix linkcheck issues 2021-09-12 02:30:24 +00:00
rustdoc-json Create rustdoc_internals feature gate 2021-11-24 21:57:18 +01:00
rustdoc-ui Add regression test for #59502 2021-12-28 14:09:20 -08:00
ui Rollup merge of #92412 - dtolnay:tryspace, r=Mark-Simulacrum 2022-01-01 10:48:55 +01:00
ui-fulldeps Remove unnecessary sigils around Ident::as_str() calls. 2021-12-15 17:32:42 +11:00
COMPILER_TESTS.md