-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Reduce macro usage for lints #104863
Reduce macro usage for lints #104863
Commits on Dec 2, 2022
-
Eliminate four unnecessary lint macros.
The lint definitions use macros heavily. This commit merges some of them that are split unnecessarily. I find the reduced indirection makes it easier to imagine what the generated code will look like.
Configuration menu - View commit details
-
Copy full SHA for 33faf01 - Browse repository at this point
Copy the full SHA 33faf01View commit details -
Because it complicates lint implementation greatly.
Configuration menu - View commit details
-
Copy full SHA for 67cfe2c - Browse repository at this point
Copy the full SHA 67cfe2cView commit details -
Remove six macros relating to lint definitions.
These were enabled by the removal of `-Zno-interleave-lints`.
Configuration menu - View commit details
-
Copy full SHA for 99e9c1d - Browse repository at this point
Copy the full SHA 99e9c1dView commit details -
Merge
builtins
intoLateLintPassObjects
.This avoids calling the `late_lint_{mod_pass,pass_crate}` twice.
Configuration menu - View commit details
-
Copy full SHA for 890c5ea - Browse repository at this point
Copy the full SHA 890c5eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e4f55d - Browse repository at this point
Copy the full SHA 0e4f55dView commit details -
Inline and remove
late_lint_pass_crate
.It has a single call site.
Configuration menu - View commit details
-
Copy full SHA for 357aee9 - Browse repository at this point
Copy the full SHA 357aee9View commit details -
Remove some unnecessary
Send
bounds.Required to get the parallel compiler building again.
Configuration menu - View commit details
-
Copy full SHA for 44cb4f7 - Browse repository at this point
Copy the full SHA 44cb4f7View commit details -
Merge
builtins
intoEarlyLintPassObjects
.This avoids calling `early_lint_node` twice. Note: one `early_lint_node` call had `!pre_expansion` for the second argument and the other had `false`. The new single call just has `!pre_expansion`. This results in a reduction of duplicate error messages in some `ui-fulldeps` tests. The order of some `ui-fulldeps` output also changes, but that doesn't matter.
Configuration menu - View commit details
-
Copy full SHA for a9b02af - Browse repository at this point
Copy the full SHA a9b02afView commit details -
Configuration menu - View commit details
-
Copy full SHA for 406dace - Browse repository at this point
Copy the full SHA 406daceView commit details