Skip to content
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

Rename subst::Kind to subst::GenericArg #64515

Merged
merged 2 commits into from
Sep 26, 2019
Merged

Conversation

varkor
Copy link
Member

@varkor varkor commented Sep 16, 2019

And subst::UnpackedKind to subst::GenericArgKind. Individual variable names (e.g. kind) are not renamed, which would be an infeasible mission.

Fixes #64352.

r? @eddyb

@JohnCSimon JohnCSimon added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 21, 2019
@oli-obk
Copy link
Contributor

oli-obk commented Sep 21, 2019

r? @eternaleye

it would be best if the name bikeshed ended without containing Kind at all

@eddyb
Copy link
Member

eddyb commented Sep 25, 2019

At this point I'd be happy with a weird name like TyLtOrCt where it's really easy to explain what the name means that we can rename later to something prettier.

I believe @eternaleye explained to me why both "kind" and "term" don't work well for this, and it's more damning due to Rust not being dependently-typed.
@oli-obk or I could look for the exact quote if that's wanted.

@varkor
Copy link
Member Author

varkor commented Sep 25, 2019

I believe @eternaleye explained to me why both "kind" and "term" don't work well for this, and it's more damning due to Rust not being dependently-typed.

I think we already established that neither was ideal, which is why this is a more long-winded name, but I'd be interested in hearing their justification too.

At this point I'd be happy with a weird name like TyLtOrCt where it's really easy to explain what the name means that we can rename later to something prettier.

Maybe...

@varkor varkor changed the title Rename subst::Kind to subst::KindedTerm Rename subst::Kind to subst::GenericArg Sep 25, 2019
@varkor
Copy link
Member Author

varkor commented Sep 25, 2019

I've renamed Kind to GenericArg, following @eddyb's suggestion in #64352 (comment).

@oli-obk
Copy link
Contributor

oli-obk commented Sep 25, 2019

@bors r+ p=1 bitrotty

@bors
Copy link
Contributor

bors commented Sep 25, 2019

📌 Commit 4788e7d6c369ad17306ebd42b555dc997450a16a has been approved by oli-obk

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 25, 2019
@bors
Copy link
Contributor

bors commented Sep 26, 2019

🔒 Merge conflict

This pull request and the master branch diverged in a way that cannot be automatically merged. Please rebase on top of the latest master branch, and let the reviewer approve again.

How do I rebase?

Assuming self is your fork and upstream is this repository, you can resolve the conflict following these steps:

  1. git checkout kindedterm (switch to your branch)
  2. git fetch upstream master (retrieve the latest master)
  3. git rebase upstream/master -p (rebase on top of it)
  4. Follow the on-screen instruction to resolve conflicts (check git status if you got lost).
  5. git push self kindedterm --force-with-lease (update this PR)

You may also read Git Rebasing to Resolve Conflicts by Drew Blessing for a short tutorial.

Please avoid the "Resolve conflicts" button on GitHub. It uses git merge instead of git rebase which makes the PR commit history more difficult to read.

Sometimes step 4 will complete without asking for resolution. This is usually due to difference between how Cargo.lock conflict is handled during merge and rebase. This is normal, and you should still perform step 5 to update this PR.

Error message
Auto-merging src/librustdoc/clean/mod.rs
CONFLICT (content): Merge conflict in src/librustdoc/clean/mod.rs
Auto-merging src/librustc_typeck/variance/constraints.rs
Auto-merging src/librustc_typeck/outlives/implicit_infer.rs
Auto-merging src/librustc_typeck/collect.rs
CONFLICT (content): Merge conflict in src/librustc_typeck/collect.rs
Auto-merging src/librustc_typeck/check/wfcheck.rs
CONFLICT (content): Merge conflict in src/librustc_typeck/check/wfcheck.rs
Auto-merging src/librustc_typeck/check/regionck.rs
Auto-merging src/librustc_typeck/check/pat.rs
Auto-merging src/librustc_typeck/check/mod.rs
Auto-merging src/librustc_typeck/check/dropck.rs
Auto-merging src/librustc_typeck/astconv.rs
Auto-merging src/librustc_traits/chalk_context/resolvent_ops.rs
Auto-merging src/librustc_traits/chalk_context/program_clauses/builtin.rs
Auto-merging src/librustc_traits/chalk_context/mod.rs
CONFLICT (content): Merge conflict in src/librustc_traits/chalk_context/mod.rs
Auto-merging src/librustc_mir/interpret/intrinsics/type_name.rs
Auto-merging src/librustc_mir/hair/pattern/mod.rs
Auto-merging src/librustc_mir/borrow_check/nll/type_check/mod.rs
Auto-merging src/librustc_mir/borrow_check/nll/region_infer/error_reporting/region_name.rs
Auto-merging src/librustc_codegen_utils/symbol_names/v0.rs
Auto-merging src/librustc_codegen_utils/symbol_names/legacy.rs
Auto-merging src/librustc_codegen_llvm/debuginfo/mod.rs
Auto-merging src/librustc_codegen_llvm/debuginfo/metadata.rs
Auto-merging src/librustc/ty/util.rs
CONFLICT (content): Merge conflict in src/librustc/ty/util.rs
Auto-merging src/librustc/ty/subst.rs
Auto-merging src/librustc/ty/sty.rs
Auto-merging src/librustc/ty/relate.rs
Auto-merging src/librustc/ty/print/pretty.rs
Auto-merging src/librustc/ty/print/mod.rs
Auto-merging src/librustc/ty/context.rs
CONFLICT (content): Merge conflict in src/librustc/ty/context.rs
Auto-merging src/librustc/traits/query/dropck_outlives.rs
Auto-merging src/librustc/lint/context.rs
Auto-merging src/librustc/infer/outlives/obligations.rs
Auto-merging src/librustc/infer/opaque_types/mod.rs
Auto-merging src/librustc/infer/nll_relate/mod.rs
Auto-merging src/librustc/infer/mod.rs
Auto-merging src/librustc/infer/error_reporting/mod.rs
Auto-merging src/librustc/infer/canonical/query_response.rs
Auto-merging src/librustc/infer/canonical/canonicalizer.rs
Automatic merge failed; fix conflicts and then commit the result.

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Sep 26, 2019
@bors
Copy link
Contributor

bors commented Sep 26, 2019

☔ The latest upstream changes (presumably #64513) made this pull request unmergeable. Please resolve the merge conflicts.

@varkor
Copy link
Member Author

varkor commented Sep 26, 2019

@bors r=oli-obk

@bors
Copy link
Contributor

bors commented Sep 26, 2019

📌 Commit e3fb05d has been approved by oli-obk

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Sep 26, 2019
@matthiaskrgr matthiaskrgr mentioned this pull request Sep 26, 2019
@bors
Copy link
Contributor

bors commented Sep 26, 2019

⌛ Testing commit e3fb05d with merge ddf4386...

bors added a commit that referenced this pull request Sep 26, 2019
Rename `subst::Kind` to `subst::GenericArg`

And `subst::UnpackedKind` to `subst::GenericArgKind`. Individual variable names (e.g. `kind`) are not renamed, which would be an infeasible mission.

Fixes #64352.

r? @eddyb
@bors
Copy link
Contributor

bors commented Sep 26, 2019

☀️ Test successful - checks-azure
Approved by: oli-obk
Pushing ddf4386 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Sep 26, 2019
@bors bors merged commit e3fb05d into rust-lang:master Sep 26, 2019
matthiaskrgr added a commit to matthiaskrgr/rust-clippy that referenced this pull request Sep 26, 2019
changelog: none
bors added a commit to rust-lang/rust-clippy that referenced this pull request Sep 26, 2019
@RalfJung
Copy link
Member

Thanks a lot :)

@varkor varkor deleted the kindedterm branch September 28, 2019 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename Kind
6 participants