rust/src/test
Yuki Okushi 0d9a6edb50
Rollup merge of #82789 - csmoe:issue-82772, r=estebank
Get with field index from pattern slice instead of directly indexing

Closes #82772
r? ``@estebank``

https://github.com/rust-lang/rust/pull/82789#issuecomment-796921977
> ``@estebank`` So the real cause is we only generate single pattern for Box here
615b03aeaa/compiler/rustc_mir_build/src/thir/pattern/deconstruct_pat.rs (L1130-L1132)
But in the replacing function, it tries to index on the 1-length pattern slice with field 1, thus out of bounds.
615b03aeaa/compiler/rustc_mir_build/src/thir/pattern/deconstruct_pat.rs (L1346)
2021-03-14 13:07:31 +09:00
..
assembly Support LLVM 12 in rustc 2021-02-28 10:19:44 +01:00
auxiliary
codegen Emit the enum range assumption if the range only contains one element 2021-03-12 12:06:10 +08:00
codegen-units
debuginfo Update tests for extern block linting 2021-01-13 07:49:16 -05:00
incremental Bless tests. 2021-03-09 19:27:59 +01:00
mir-opt Allow calling *const methods on *mut values 2021-03-09 13:40:08 +03:00
pretty Update test/pretty output for edition preludes. 2021-02-25 13:43:11 +01:00
run-make Remove storage markers if they won't be used during code generation 2021-02-28 20:10:44 +01:00
run-make-fulldeps Make def_key and HIR parenting consistent. 2021-03-12 22:48:32 +01:00
run-pass-valgrind Update tests for extern block linting 2021-01-13 07:49:16 -05:00
rustdoc Rollup merge of #80763 - petrochenkov:pubusecrate, r=estebank 2021-03-05 10:57:15 +01:00
rustdoc-gui Add test to ensure the attributes position when js is disabled 2021-03-09 21:40:04 +01:00
rustdoc-js Add test for primitive search 2021-02-01 15:56:51 +01:00
rustdoc-js-std Add search index test for primitive types 2021-01-27 10:05:06 +01:00
rustdoc-json Rollup merge of #82571 - aDotInTheVoid:reexport-tests, r=CraftSpider 2021-03-12 08:55:13 +09:00
rustdoc-ui Rollup merge of #82651 - jyn514:rustdoc-warnings, r=GuillaumeGomez 2021-03-07 10:41:13 +09:00
rustfix
ui Rollup merge of #82789 - csmoe:issue-82772, r=estebank 2021-03-14 13:07:31 +09:00
ui-fulldeps Rebase fallout. 2021-03-09 19:28:01 +01:00
COMPILER_TESTS.md