]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Rollup merge of #75580 - JulianKnodt:or_pattern, r=wesleywiser
authorRalf Jung <post@ralfj.de>
Sat, 19 Sep 2020 09:47:37 +0000 (11:47 +0200)
committerGitHub <noreply@github.com>
Sat, 19 Sep 2020 09:47:37 +0000 (11:47 +0200)
commit3ebba83a47ab60cc478e8085be670c5c52d55cb7
tree275cc67e1ff72ed4cd5cfd590cc765456fe4414b
parentf62ba52f5c100eadd658d6685e680518b71cdb77
parent6cb671628393e292d5e68e6367f80488ace46532
Rollup merge of #75580 - JulianKnodt:or_pattern, r=wesleywiser

Add test for checking duplicated branch or-patterns

This adds a regression test for checking `or-patterns` in MIR as shown in #75439.
This doesn't introduce a fix as I'm not sure where it would go(I suspect maybe here: src/librustc_mir_build/build/matches/mod.rs), and I'm not particularly able to fix it.

cc: @lzutao