-
Couldn't load subscription status.
- Fork 13.9k
Rename *.node to *.kind, and hair::Pattern* to hair::Pat*
#64813
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
This comment has been minimized.
This comment has been minimized.
Expr.node to Expr.kind.(Expr|Pat).node to $1.kind
|
Did you check HAIR as well? |
|
Also it might be easier to merge this if you split it into several PRs (e.g. one for AST, one for HIR, ...). |
|
I'm renaming anything with the same name, so it's easiest to target AST and HIR at once (and HAIR if it has the same names). It'll be more difficult to merge, but I figure it's easier to merge one conflict-prone PR than several. |
(Expr|Pat).node to $1.kind*.node to *.kind for various types
|
The advantage of several smaller PRs is that I can make rollups with them -- and because you would be touching different parts of the compiler, you're unlikely to cause conflicts several times in one PR. |
*.node to *.kind for various types*.node to *.kind
For both `ast::Expr` and `hir::Expr`.
4de6897 to
3812117
Compare
*.node to *.kind*.node to *.kind, and hair::Pattern* to hair::Pat*
|
@bors r+ p=100 rollup=never |
|
📌 Commit ff4ed8c has been approved by |
|
@bors r+ |
|
📌 Commit 80b63dd has been approved by |
Rename `*.node` to `*.kind`, and `hair::Pattern*` to `hair::Pat*` In both `ast::Expr` and `hir::Expr`: - Rename `Expr.node` to `Expr.kind`. - Rename `Pat.node` to `Pat.kind`. - Rename `ImplItem.node` to `ImplItem.kind`. - Rename `Lit.node` to `Lit.kind`. - Rename `TraitItem.node` to `TraitItem.kind`. - Rename `Ty.node` to `Ty.kind`. - Rename `Stmt.node` to `Stmt.kind`. - Rename `Item.node` to `Item.kind`. - Rename `ForeignItem.node` to `ForeignItem.kind`. - Rename `MetaItem.node` to `MetaItem.kind`. Also: - Rename `hair::FieldPattern` to `hair::FieldPat`. - Rename `hair::PatternKind` to `hair::PatKind`. - Rename `hair::PatternRange` to `hair::PatRange`. - Rename `PatternContext` to `PatCtxt`. - Rename `PatternTypeProjection` to `PatTyProj`. - Rename `hair::Pattern` to `hair::Pat`. These two sets of changes are grouped together to aid with merging. The only changes are renamings. r? @petrochenkov
|
☀️ Test successful - checks-azure |
|
📣 Toolstate changed by #64813! Tested on commit 590ae0e. 💔 clippy-driver on windows: test-pass → build-fail (cc @mcarton @oli-obk @Manishearth @flip1995 @yaahc @phansch @llogiq, @rust-lang/infra). |
Tested on commit rust-lang/rust@590ae0e. Direct link to PR: <rust-lang/rust#64813> 💔 clippy-driver on windows: test-pass → build-fail (cc @mcarton @oli-obk @Manishearth @flip1995 @yaahc @phansch @llogiq, @rust-lang/infra). 💔 clippy-driver on linux: test-pass → build-fail (cc @mcarton @oli-obk @Manishearth @flip1995 @yaahc @phansch @llogiq, @rust-lang/infra).
Rustup to rust-lang/rust#64813 cc rust-lang/rust#64843 changelog: none
Rustup to rust-lang/rust#64813 cc rust-lang/rust#64843 changelog: none
Changes: ```` Remove clippy::author attribute from trailing_zeroes test Move author issue test to author subdir Fix author lint Rustup to rust-lang#64813 Refactor `booleans` Detect assignment ops in integer_arithmetic ````
submodules: update clippy from 68ff8b1 to edd9047 Changes: ```` Remove clippy::author attribute from trailing_zeroes test Move author issue test to author subdir Fix author lint Rustup to #64813 Refactor `booleans` Detect assignment ops in integer_arithmetic ```` Fixes #64843 r? @oli-obk @Manishearth
Changes: ```` Remove clippy::author attribute from trailing_zeroes test Move author issue test to author subdir Fix author lint Rustup to rust-lang/rust#64813 Refactor `booleans` Detect assignment ops in integer_arithmetic ````
In both
ast::Exprandhir::Expr:Expr.nodetoExpr.kind.Pat.nodetoPat.kind.ImplItem.nodetoImplItem.kind.Lit.nodetoLit.kind.TraitItem.nodetoTraitItem.kind.Ty.nodetoTy.kind.Stmt.nodetoStmt.kind.Item.nodetoItem.kind.ForeignItem.nodetoForeignItem.kind.MetaItem.nodetoMetaItem.kind.Also:
hair::FieldPatterntohair::FieldPat.hair::PatternKindtohair::PatKind.hair::PatternRangetohair::PatRange.PatternContexttoPatCtxt.PatternTypeProjectiontoPatTyProj.hair::Patterntohair::Pat.These two sets of changes are grouped together to aid with merging. The only changes are renamings.
r? @petrochenkov