Uh oh!
There was an error while loading. Please reload this page.
Cleanup: rename middle::ty::sty and its variants. - #26232
Conversation
rust-highfive
commented
Jun 12, 2015
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nrc (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
bors
commented
Jun 12, 2015
☔ The latest upstream changes (presumably #26225) made this pull request unmergeable. Please resolve the merge conflicts. |
eddyb
commented
Jun 12, 2015
LGTM, but a could of names seem somewhat long: |
eefriedman
commented
Jun 12, 2015
I can shorten I don't really know how to shorten As for getting rid of the |
nrc
commented
Jun 12, 2015
In general, I don't mind long names so much. TyRef is fine. I think TyArray would be fine instead of TyArrayOrSlice - it is close enough. Dropping the Ty prefix in favour of Ty:: would be nice. But I don't want to see TyV at all - that's indecipherable. (In general, we have a history of short and somewhat bad names in the compiler and we've been moving towards longer, more understandable names. Obviously there are specific places where concision is still warranted though). |
There was a problem hiding this comment.
maybe Types rather than TyV or TypeVariants?
There was a problem hiding this comment.
I think @nikomatsakis also mentioned TyKind a long time ago (when I considered making this cleanup).
nrc
commented
Jun 12, 2015
This is a great PR, I've wanted to rename these things for a while. Thanks for making the changes. If you could at least change TyArrayOrSlice and TyReference we could land this. You could try changing to use the prefix, or we could land this and do that as a follow up - I realise this PR will rot quite quickly. |
877fef6 to
9fad9afCompareeefriedman
commented
Jun 12, 2015
Rebased, and amended to use TyRef and TyArray. I think I'll experiment with the prefixes later; there's already a variant named "Types" in librustc/middle/infer/mod.rs. |
nrc
commented
Jun 12, 2015
@bors: r+ p=1 |
bors
commented
Jun 12, 2015
📌 Commit 9fad9af has been approved by |
bors
commented
Jun 12, 2015
⌛ Testing commit 9fad9af with merge 7626e9f... |
bors
commented
Jun 12, 2015
💔 Test failed - auto-linux-64-nopt-t |
eefriedman
commented
Jun 12, 2015
I didn't rebase correctly; sorry about the churn. Amended with fix. |
nrc
commented
Jun 12, 2015
@bors: r+ p=1 |
bors
commented
Jun 12, 2015
📌 Commit 00f86fe has been approved by |
bors
commented
Jun 12, 2015
⌛ Testing commit 00f86fe with merge f4bdebf... |
Use camel-case naming, and use names which actually make sense in modern Rust.
bors
commented
Jun 12, 2015
💔 Test failed - auto-mac-64-opt |
Use camel-case naming, and use names which actually make sense in modern Rust.
eefriedman
commented
Jun 12, 2015
Updated again; I thought I had built everything, but I somehow missed librustdoc. |
eddyb
commented
Jun 12, 2015
@bors r=nrc |
bors
commented
Jun 12, 2015
📌 Commit 3c69db4 has been approved by |
bors
commented
Jun 12, 2015
Use camel-case naming, and use names which actually make sense in modern Rust.
Use camel-case naming, and use names which actually make sense in modern Rust.