-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Rust: rename several entities to their more natural names #19137
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
Conversation
a228378 to
48e1cb7
Compare
48e1cb7 to
87dc4cd
Compare
rust/ql/lib/codeql/rust/elements.qll
Outdated
Check warning
Code scanning / CodeQL
Redundant import Warning
codeql.rust.elements.Union
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the renames look great 👍
This renames several entities using terminology from the official rust grammar:
RecordFieldListtoStructFieldList(see https://doc.rust-lang.org/reference/items/structs.html)getNameReftogetIdentifier(see for example https://doc.rust-lang.org/reference/expressions/field-expr.html)Variant::getExprtoVariant::getDiscriminant(see https://doc.rust-lang.org/reference/items/enumerations.html)FieldExpr::getExprtoFieldExpr::getContainer(see https://doc.rust-lang.org/reference/expressions/field-expr.html)StructField::getExprtoStructField::getDefault(this is an experimental feature, details in Tracking issue for RFC 3681: Default field values rust-lang/rust#132162)This required the ast generator to handle enum variant renames which it couldn't yet.
Commit by commit review is encouraged.