-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
nightly unused_assignments false positives for miette::Diagnostic fields #147648
Copy link
Copy link
Open
Labels
C-bugCategory: This is a bug.Category: This is a bug.E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleL-unused_assignmentsLint: unused_assignmentsLint: unused_assignmentsP-mediumMedium priorityMedium 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-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleL-unused_assignmentsLint: unused_assignmentsLint: unused_assignmentsP-mediumMedium priorityMedium 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-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Starting with rustc 1.92.0-nightly (2300c2a, 2025-10-12), the compiler’s
unused_assignmentslint now emits warnings in the following snippet which usesmietteandthiserrorCode
I tried this code:
I expected to see this happen: The code compiles without any error
Instead, this happened:
Version it worked on
It most recently worked on:
Version with regression
rustc --version --verbose:Backtrace
Backtrace