-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Visit attributes in more places. #96745
Commits on Aug 12, 2022
-
Check attributes on pattern fields.
Attributes on pattern struct fields were not being checked for validity. This adds the fields as HIR nodes so that the `CheckAttrVisitor` can visit those nodes to check their attributes.
Configuration menu - View commit details
-
Copy full SHA for 1b464c7 - Browse repository at this point
Copy the full SHA 1b464c7View commit details -
Check attributes on struct expression fields.
Attributes on struct expression fields were not being checked for validity. This adds the fields as HIR nodes so that `CheckAttrVisitor` can visit those nodes to check their attributes.
Configuration menu - View commit details
-
Copy full SHA for b651c1c - Browse repository at this point
Copy the full SHA b651c1cView commit details -
Honor lint level attributes in more places.
This extends the LintLevelBuilder to handle lint level attributes on struct expression fields and pattern fields. This also updates the early lints to honor lint levels on generic parameters.
Configuration menu - View commit details
-
Copy full SHA for 6c7cb2b - Browse repository at this point
Copy the full SHA 6c7cb2bView commit details -
Add visitors for PatField and ExprField.
This helps simplify the code. It also fixes it to use the correct parent when lowering. One consequence is the `non_snake_case` lint needed to change the way it looked for parent nodes in a struct pattern. This also includes a small fix to use the correct `Target` for expression field attribute validation.
Configuration menu - View commit details
-
Copy full SHA for dcd5177 - Browse repository at this point
Copy the full SHA dcd5177View commit details -
Make Node::ExprField a child of Node::Expr.
This was incorrectly inserting the ExprField as a sibling of the struct expression. This required adjusting various parts which were looking at parent node of a field expression to find the struct.
Configuration menu - View commit details
-
Copy full SHA for 7b36047 - Browse repository at this point
Copy the full SHA 7b36047View commit details -
Add missing visit_pat_field in early lint visitor.
This ensures that lint attributes on pattern fields can control early lints.
Configuration menu - View commit details
-
Copy full SHA for c655f17 - Browse repository at this point
Copy the full SHA c655f17View commit details -
Fix diagnostic that was looking for a PatKind::Struct
Now that fields are first-class HIR nodes, they appear before the struct pat.
Configuration menu - View commit details
-
Copy full SHA for 1c70b86 - Browse repository at this point
Copy the full SHA 1c70b86View commit details -
Configuration menu - View commit details
-
Copy full SHA for 900a9d3 - Browse repository at this point
Copy the full SHA 900a9d3View commit details