-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Regression when dropping temporary value in match in older editions #145374
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.P-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Compiling the following code in older editions (edition 2024 works):
(Reduced from https://github.com/madsmtm/objc2/tree/master/crates/header-translator, this is as small as I managed to make it, it seems like both
pointeeandItemIdentifierare required?).Fails compiling with:
A
cargo bisect-rustcreveals that this was introduced in #143376 (nightly-2025-08-09works,nightly-2025-08-10fails), it is unclear to me if this breakage was intentional or not?CC @dianne @est31
@rustbot modify labels: +regression-from-stable-to-nightly -regression-untriaged