diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-05-26 13:32:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-26 13:32:10 +0200 |
| commit | 3c2a709620fd1cc3802a6ffce558e673b1add954 (patch) | |
| tree | f58de384850b95582af962d4658be78b73785206 /compiler/rustc_codegen_llvm/src/allocator.rs | |
| parent | 12ab323d0ec860bb93c4f9da7a61ee0dde016f8c (diff) | |
| parent | 824c7435fa849d101a522e3744aff85074752734 (diff) | |
| download | rust-3c2a709620fd1cc3802a6ffce558e673b1add954.tar.gz rust-3c2a709620fd1cc3802a6ffce558e673b1add954.zip | |
Rollup merge of #85678 - lukas-code:matches2021, r=dtolnay
fix `matches!` and `assert_matches!` on edition 2021
Previously this code failed to compile on edition 2021. [(Playground)](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=53960f2f051f641777b9e458da747707)
```rust
fn main() {
matches!((), ());
}
```
```
Compiling playground v0.0.1 (/playground)
error: `$pattern:pat` may be followed by `|`, which is not allowed for `pat` fragments
|
= note: allowed there are: `=>`, `,`, `=`, `if` or `in`
error: aborting due to previous error
error: could not compile `playground`
To learn more, run the command again with --verbose.
```
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/allocator.rs')
0 files changed, 0 insertions, 0 deletions
