Uh oh!
There was an error while loading. Please reload this page.
Fix unused_assignments false positives from macros - #149147
Conversation
rustbot
commented
Nov 20, 2025
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
rustbot
commented
Nov 20, 2025
r? @SparrowLii rustbot has assigned @SparrowLii. Use |
Uh oh!
There was an error while loading. Please reload this page.
0f7c6a0 to
c21d817Compare
This comment has been minimized.
This comment has been minimized.
c21d817 to
f943606Compareworkingjubilee
commented
Dec 3, 2025
r? compiler |
JonathanBrouwer
commented
Dec 3, 2025
@bors r+ rollup |
bors
commented
Dec 3, 2025
…nments-macro-gen-147648, r=JonathanBrouwer Fix unused_assignments false positives from macros Fixesrust-lang#147648
…nments-macro-gen-147648, r=JonathanBrouwer Fix unused_assignments false positives from macros Fixesrust-lang#147648
…nments-macro-gen-147648, r=JonathanBrouwer Fix unused_assignments false positives from macros Fixesrust-lang#147648
Rollup of 12 pull requests Successful merges: - #147841 (Fix ICE when applying test macro to crate root) - #149147 (Fix unused_assignments false positives from macros) - #149183 (Use `TypingMode::PostAnalysis` in `try_evaluate_const`) - #149456 (std: don't call `current_os_id` from signal handler) - #149501 (CTFE: avoid emitting a hard error on generic normalization failures) - #149528 (reword error for invalid range patterns) - #149539 (Additional test for uN::{gather,scatter}_bits) - #149549 (Regression test for system register `ttbr0_el2`) - #149550 (Disable native-lib for x check miri) - #149554 (build-manifest: generate MSI and MINGW arrays from rustc) - #149557 (c-variadic: bpf and spirv do not support c-variadic definitions) - #149569 (Fix mailmap issue) r? `@ghost` `@rustbot` modify labels: rollup
Uh oh!
There was an error while loading. Please reload this page.
Kobzol
commented
Dec 4, 2025
@rust-timer build 4da4cc5 For #149631 (comment). |
This comment has been minimized.
This comment has been minimized.
rust-timer
commented
Dec 4, 2025
Finished benchmarking commit (4da4cc5): comparison URL. Overall result: ❌ regressions - please read the text belowBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @bors rollup=never Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary -1.0%, secondary 11.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary 23.6%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 468.789s -> 468.96s (0.04%) |
JonathanBrouwer
commented
Dec 4, 2025
Oh wow I did not expect that regression from such a simple check. |
workingjubilee
commented
Dec 4, 2025
I'm expecting the answer to be "no" but I want to be sure we're confirming that answer given this is a beta regression: @rustbot label +beta-nominated |
Kobzol
commented
Dec 4, 2025
Posted a revert in #149657. |
Revert "Rollup merge of #149147 - chenyukang:yukang-fix-unused_assignments-macro-gen-147648, r=JonathanBrouwer"
chenyukang
commented
Dec 5, 2025
I'm on travel right now, will have a check it later. |
Revert "Rollup merge of #149147 - chenyukang:yukang-fix-unused_assignments-macro-gen-147648, r=JonathanBrouwer" This reverts commit 82a17b3, reversing changes made to 5019bda. Reverts #149147 due to a [perf regression](#149147 (comment)).
Revert "Rollup merge of #149147 - chenyukang:yukang-fix-unused_assignments-macro-gen-147648, r=JonathanBrouwer" This reverts commit 82a17b3, reversing changes made to 5019bda. Reverts #149147 due to a [perf regression](#149147 (comment)).
Revert "Rollup merge of #149147 - chenyukang:yukang-fix-unused_assignments-macro-gen-147648, r=JonathanBrouwer" This reverts commit 82a17b3, reversing changes made to 5019bda. Reverts #149147 due to a [perf regression](#149147 (comment)).
apiraino
commented
Dec 8, 2025
Revert "Rollup merge of #149147 - chenyukang:yukang-fix-unused_assignments-macro-gen-147648, r=JonathanBrouwer" This reverts commit 82a17b30d8cd379a43c3ee8d12598e89e3be0fbd, reversing changes made to 5019bdaefeebecac42b778ae98def56cab69ab30. Reverts rust-lang/rust#149147 due to a [perf regression](rust-lang/rust#149147 (comment)).
Revert "Rollup merge of #149147 - chenyukang:yukang-fix-unused_assignments-macro-gen-147648, r=JonathanBrouwer" This reverts commit 82a17b30d8cd379a43c3ee8d12598e89e3be0fbd, reversing changes made to 5019bdaefeebecac42b778ae98def56cab69ab30. Reverts rust-lang/rust#149147 due to a [perf regression](rust-lang/rust#149147 (comment)).
Rollup of 12 pull requests Successful merges: - rust-lang/rust#147841 (Fix ICE when applying test macro to crate root) - rust-lang/rust#149147 (Fix unused_assignments false positives from macros) - rust-lang/rust#149183 (Use `TypingMode::PostAnalysis` in `try_evaluate_const`) - rust-lang/rust#149456 (std: don't call `current_os_id` from signal handler) - rust-lang/rust#149501 (CTFE: avoid emitting a hard error on generic normalization failures) - rust-lang/rust#149528 (reword error for invalid range patterns) - rust-lang/rust#149539 (Additional test for uN::{gather,scatter}_bits) - rust-lang/rust#149549 (Regression test for system register `ttbr0_el2`) - rust-lang/rust#149550 (Disable native-lib for x check miri) - rust-lang/rust#149554 (build-manifest: generate MSI and MINGW arrays from rustc) - rust-lang/rust#149557 (c-variadic: bpf and spirv do not support c-variadic definitions) - rust-lang/rust#149569 (Fix mailmap issue) r? `@ghost` `@rustbot` modify labels: rollup
Revert "Rollup merge of #149147 - chenyukang:yukang-fix-unused_assignments-macro-gen-147648, r=JonathanBrouwer" This reverts commit 82a17b30d8cd379a43c3ee8d12598e89e3be0fbd, reversing changes made to 5019bdaefeebecac42b778ae98def56cab69ab30. Reverts rust-lang/rust#149147 due to a [perf regression](rust-lang/rust#149147 (comment)).
Revert "Rollup merge of rust-lang#149147 - chenyukang:yukang-fix-unused_assignments-macro-gen-147648, r=JonathanBrouwer" This reverts commit 82a17b3, reversing changes made to 5019bda. Reverts rust-lang#149147 due to a [perf regression](rust-lang#149147 (comment)).
Revert "Rollup merge of #149147 - chenyukang:yukang-fix-unused_assignments-macro-gen-147648, r=JonathanBrouwer" This reverts commit 82a17b30d8cd379a43c3ee8d12598e89e3be0fbd, reversing changes made to 5019bdaefeebecac42b778ae98def56cab69ab30. Reverts rust-lang/rust#149147 due to a [perf regression](rust-lang/rust#149147 (comment)).
Revert "Rollup merge of #149147 - chenyukang:yukang-fix-unused_assignments-macro-gen-147648, r=JonathanBrouwer" This reverts commit 82a17b30d8cd379a43c3ee8d12598e89e3be0fbd, reversing changes made to 5019bdaefeebecac42b778ae98def56cab69ab30. Reverts rust-lang/rust#149147 due to a [perf regression](rust-lang/rust#149147 (comment)).
[beta] backports - Revert "Rollup merge of #149147 - chenyukang:yukang-fix-unused_assignments-macro-gen-147648, r=JonathanBrouwer" #149657 - Don't lint on interior mutable `const` item coming from derefs #150166 - stdarch subtree update #150639 (partial) - Update bors configuration #150308 - Update bors e-mail lookup #150783 - Make verify-channel.sh script compatible with new bors #150759 r? cuviper
Revert "Rollup merge of #149147 - chenyukang:yukang-fix-unused_assignments-macro-gen-147648, r=JonathanBrouwer" This reverts commit 82a17b30d8cd379a43c3ee8d12598e89e3be0fbd, reversing changes made to 5019bdaefeebecac42b778ae98def56cab69ab30. Reverts rust-lang/rust#149147 due to a [perf regression](rust-lang/rust#149147 (comment)).
Revert "Rollup merge of #149147 - chenyukang:yukang-fix-unused_assignments-macro-gen-147648, r=JonathanBrouwer" This reverts commit 82a17b30d8cd379a43c3ee8d12598e89e3be0fbd, reversing changes made to 5019bdaefeebecac42b778ae98def56cab69ab30. Reverts rust-lang/rust#149147 due to a [perf regression](rust-lang/rust#149147 (comment)).
Fixes#147648