rust/tests
bors 2b399b5275 Auto merge of #118527 - Nadrieril:never_patterns_parse, r=compiler-errors
never_patterns: Parse match arms with no body

Never patterns are meant to signal unreachable cases, and thus don't take bodies:
```rust
let ptr: *const Option<!> = ...;
match *ptr {
    None => { foo(); }
    Some(!),
}
```
This PR makes rustc accept the above, and enforces that an arm has a body xor is a never pattern. This affects parsing of match arms even with the feature off, so this is delicate. (Plus this is my first non-trivial change to the parser).

~~The last commit is optional; it introduces a bit of churn to allow the new suggestions to be machine-applicable. There may be a better solution? I'm not sure.~~ EDIT: I removed that commit

r? `@compiler-errors`
2023-12-08 17:08:52 +00:00
..
assembly Auto merge of #116892 - ojeda:rethunk, r=wesleywiser 2023-11-30 22:10:30 +00:00
auxiliary
codegen CFI: Add char to CFI integer normalization 2023-12-07 11:28:16 -08:00
codegen-units
coverage coverage: Skip spans that can't be un-expanded back to the function body 2023-12-03 12:35:33 +11:00
coverage-run-rustdoc
debuginfo
incremental Rename HandlerInner::delay_span_bug as HandlerInner::span_delayed_bug. 2023-12-02 09:01:19 +11:00
mir-opt also print 'immutable' flag 2023-12-07 17:46:36 +01:00
pretty
run-make 1. fix jobserver GLOBAL_CLIENT_CHECKED uninitialized before use 2023-12-08 09:50:28 +08:00
run-make-fulldeps
run-pass-valgrind
rustdoc Rollup merge of #118594 - hdost:patch-1, r=fmease 2023-12-05 16:08:35 +01:00
rustdoc-gui Extend GUI tests for doc_cfg 2023-12-07 10:44:55 +01:00
rustdoc-js
rustdoc-js-std Auto merge of #118077 - calebzulawski:sync-portable-simd-2023-11-19, r=workingjubilee 2023-12-02 18:04:01 +00:00
rustdoc-json
rustdoc-ui Rename HandlerInner::delay_span_bug as HandlerInner::span_delayed_bug. 2023-12-02 09:01:19 +11:00
ui Auto merge of #118527 - Nadrieril:never_patterns_parse, r=compiler-errors 2023-12-08 17:08:52 +00:00
ui-fulldeps Rollup merge of #118681 - celinval:fix-foreign-item, r=ouz-a 2023-12-06 21:52:33 +01:00
COMPILER_TESTS.md