-
Notifications
You must be signed in to change notification settings - Fork 2k
Tracking Issue: Bugs introduced by Rustup #3905 #3913
Copy link
Copy link
Closed
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingC-tracking-issueCategory: Tracking IssueCategory: Tracking IssueE-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.E-needs-testCall for participation: writing testsCall for participation: writing testsL-suggestionLint: Improving, adding or fixing lint suggestionsLint: Improving, adding or fixing lint suggestions
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingC-tracking-issueCategory: Tracking IssueCategory: Tracking IssueE-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.E-needs-testCall for participation: writing testsCall for participation: writing testsL-suggestionLint: Improving, adding or fixing lint suggestionsLint: Improving, adding or fixing lint suggestions
Type
Fields
Give feedbackNo fields configured for issues without a type.
This is a tracking issue for the bugs introduced by #3905. This is only a summary, more debugging attempts can be found in the PR:
identity_conversiononread_dir()?: Fixed Make most macro checks also check for desugarings #4082Summary: This FP happens, because the code is expanded to HIR code, which includes a line containing
From::from(err). This gets linted, but shouldn't. Previously it got expanded to the same HIR code, but didn't get linted.Minimal example:
explicit_iter_loopSummary: Even though
span_lint_and_suggis used, no suggestion is displayed, but also no error or ICE. This problem came up once before on something completely unrelated: #3582 (comment). (This could be a problem in rustc, in the suggestion emitting code.)Minimal example:
into_iter_on_arraywheninto_iter()is called in thefor-loop headSummary: The problem is, that the
into_iterMethodCallin the expanded HIR code is seen as macro expanded code, so thatis_macroreturnstruefor thespanof theMethodCallexpression. The HIR expanded code didn't change recently, so something must have changed in rustc, determining if an expression comes from a macro expansion.Minimal example: