Repository navigation
Tracking Issue: Bugs introduced by Rustup #3905 #3913
Description
Activity
- addedC-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingL-suggestionLint: Improving, adding or fixing lint suggestionsLint: Improving, adding or fixing lint suggestionsE-needs-testCall for participation: writing testsCall for participation: writing testsE-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.C-tracking-issueCategory: Tracking IssueCategory: Tracking Issue
on Apr 1, 2019 This is not an issue anymore, since the changes have been rolled back, or?
Only the libtest changes were rolled back
Reacted by Phil HanschRegression tests are in #3936
Reacted by Phil Hansch- pinned this issue
on Apr 10, 2019 Citing
@estebankfrom #3944 (comment): (identity_conversionbug)@flip1995 I believe we can get around that by touching https://github.com/rust-lang/rust/blob/9217fe0e2f04d61dd29c9aaebee2c993705e1d26/src/librustc/hir/lowering.rs#L4667-L4774
We can mark any of the mentioned spans with CompilerDesugaringKind::QuestionMark as a reason, we just need to identify which span it should be (or mark all of them, which should be fine, depending on how that mark is used elsewhere).
- added a commit that references this issue
on May 12, 2019 I would have found this problem quicker if it was mentioned in the Lints: Known problems
identity_conversionis fixed in the latest version. a5bcaf5Everything listed here got fixed. Verified in #3936
- unpinned this issue
on Jun 14, 2019
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: