-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking Issue: Bugs introduced by Rustup #3905 #3913
Comments
This is not an issue anymore, since the changes have been rolled back, or? |
Only the libtest changes were rolled back |
Regression tests are in #3936 |
Citing
|
I would have found this problem quicker if it was mentioned in the Lints: Known problems |
|
Everything listed here got fixed. Verified in #3936 |
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_conversion
onread_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_loop
Summary: Even though
span_lint_and_sugg
is 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_array
wheninto_iter()
is called in thefor
-loop headSummary: The problem is, that the
into_iter
MethodCall
in the expanded HIR code is seen as macro expanded code, so thatis_macro
returnstrue
for thespan
of theMethodCall
expression. 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:
The text was updated successfully, but these errors were encountered: