rust/tests
Matthias Krüger 93781324db
Rollup merge of #133753 - dingxiangfei2009:reduce-false-positive-if-let-rescope, r=jieyouxu
Reduce false positives on some common cases from if-let-rescope lint

r? `@jieyouxu`

We would like to identify a very common case in the ecosystem in which we do not need to apply the lint suggestion for the new Edition 2024 `if let` semantics.

In this patch we excluded linting from `if let`s in statements and block tail expressions. In these simple cases, new Edition 2024 drop orders are identical to those of Edition 2021 and prior.

However, conservatively we should still lint for the other cases, because [this example](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=2113df5ce78f161d32a1190faf5c7469) shows that the drop order changes are very pronounced, some of which are even sensitive to runtime data.
2024-12-03 17:27:08 +01:00
..
assembly Rollup merge of #133674 - scottmcm:chain-carrying-add, r=Amanieu 2024-12-01 14:30:11 +01:00
auxiliary Support input/output in vector registers of s390x inline assembly 2024-11-22 04:18:14 +09:00
codegen Rollup merge of #132612 - compiler-errors:async-trait-bounds, r=lcnr 2024-12-03 17:27:05 +01:00
codegen-units Share inline(never) generics across crates 2024-11-28 13:43:05 -05:00
coverage Gate async fn trait bound modifier on async_trait_bounds 2024-12-02 16:50:44 +00:00
coverage-run-rustdoc coverage: Restrict empty-span expansion to only cover { and } 2024-11-08 20:43:08 +11:00
crashes Rollup merge of #133558 - compiler-errors:structurally-resolve-probe-adt, r=lcnr 2024-12-03 17:27:07 +01:00
debuginfo Mark numeric-types.rs as 64-bit only for now 2024-11-17 04:16:59 +08:00
incremental Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
mir-opt Add test for -Zdump-mir-dataflow. 2024-12-02 16:19:17 +11:00
pretty Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
run-make Rollup merge of #133041 - madsmtm:print-deployment-target-env-var, r=davidtwco 2024-12-03 07:48:31 +01:00
rustdoc Add regression test for prelude types 2024-11-25 17:25:25 +01:00
rustdoc-gui Align impl doc block with impl keyword 2024-11-13 15:13:31 +01:00
rustdoc-js rustdoc-search: add standalone trailing :: test 2024-11-17 08:07:16 -07:00
rustdoc-js-std rustdoc search: allow queries to end in an empty path segment 2024-11-15 16:32:40 -06:00
rustdoc-json Rollup merge of #133721 - aDotInTheVoid:rdj-dyn-link, r=GuillaumeGomez 2024-12-02 17:36:05 +01:00
rustdoc-ui Rollup merge of #133595 - GuillaumeGomez:missing_doc_code_examples, r=notriddle 2024-12-01 14:30:09 +01:00
ui Rollup merge of #133753 - dingxiangfei2009:reduce-false-positive-if-let-rescope, r=jieyouxu 2024-12-03 17:27:08 +01:00
ui-fulldeps Add pretty-printer parenthesis insertion test 2024-12-01 21:31:02 -08:00
COMPILER_TESTS.md