Rename TyVariants and variants#53581
Conversation
6e61e3e to
efe7612
Compare
src/librustc/hir/def.rs
Outdated
There was a problem hiding this comment.
Hm, maybe drop Ty here too? And in the other cases perhaps?
There was a problem hiding this comment.
No, this is "primitive type". Def contains both types and values.
src/librustc/hir/def.rs
Outdated
There was a problem hiding this comment.
This seems suboptimal... what if you first rename this to ForeignTy and then do the other renames?
src/librustc/hir/def.rs
Outdated
There was a problem hiding this comment.
We probably want to keep this the way it is, assuming we need to tell apart ty params from const ones.
4afca34 to
f3fcbbc
Compare
|
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
|
☔ The latest upstream changes (presumably #50912) made this pull request unmergeable. Please resolve the merge conflicts. |
src/librustc/hir/def.rs
Outdated
There was a problem hiding this comment.
I prefer ForeignTy, specifically, just like AssociatedTy below.
673fe3f to
f6557d0
Compare
There was a problem hiding this comment.
Hehe you don't need to change this.
f6557d0 to
b3018a9
Compare
|
☔ The latest upstream changes (presumably #53424) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@varkor r=me when you rebase |
…ic|Closure|Generator|GeneratorWitness|Never|Tuple|Projection|Anon|Infer|Error}
b3018a9 to
4e62df4
Compare
4e62df4 to
71722b9
Compare
|
@bors r=eddyb p=10 (This bitrots very quickly.) |
|
📌 Commit 71722b9 has been approved by |
Rename TyVariants and variants - Rename `TypeVariants` to `TyKind`. - Remove the `Ty` prefix from each one of its variants (plus the identically-named variants of `PrimTy`). - Rename `ty::Slice` to `ty::List`. The new names look cleaner. r? @eddyb
|
☀️ Test successful - status-appveyor, status-travis |
|
📣 Toolstate changed by #53581! Tested on commit b75b047. 💔 clippy-driver on windows: test-pass → build-fail (cc @Manishearth @llogiq @mcarton @oli-obk, @rust-lang/infra). |
Tested on commit rust-lang/rust@b75b047. Direct link to PR: <rust-lang/rust#53581> 💔 clippy-driver on windows: test-pass → build-fail (cc @Manishearth @llogiq @mcarton @oli-obk, @rust-lang/infra). 💔 clippy-driver on linux: test-pass → build-fail (cc @Manishearth @llogiq @mcarton @oli-obk, @rust-lang/infra).
rustup, fix breakage introduced by rust-lang/rust#53581 and rust-lang/rust#53459
This has been renamed in rust-lang/rust#53581.
This has been renamed in rust-lang/rust#53581.
TypeVariantstoTyKind.Typrefix from each one of its variants (plus the identically-named variants ofPrimTy).ty::Slicetoty::List.The new names look cleaner.
r? @eddyb