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

rustup: update for the new Ty::walk interface. #5434

Merged
merged 4 commits into from
Apr 7, 2020

Conversation

eddyb
Copy link
Member

@eddyb eddyb commented Apr 7, 2020

The first commit fixes a portability bug in setup-toolchain.sh, while the second rewrites the handling of "trait impl methods" in use_self - even if Ty::walk could've still been used, it was IMO a misuse.

This could also serve as a PSA: please use hir_ty_to_ty instead of trying to compare hir::Tys between themselves or against semantic Tys. Its "quasi-deprecation" is 3 years old and doesn't really mean anything, just that it's currently uncached and that we should eventually querify it (either for a single HIR node, or for all of the nodes in an entire definition).


changelog: none

@flip1995
Copy link
Member

flip1995 commented Apr 7, 2020

@bors r+ p=3

@bors
Copy link
Collaborator

bors commented Apr 7, 2020

📌 Commit f5b6a0c has been approved by flip1995

@bors
Copy link
Collaborator

bors commented Apr 7, 2020

🌲 The tree is currently closed for pull requests below priority 2, this pull request will be tested once the tree is reopened

@bors
Copy link
Collaborator

bors commented Apr 7, 2020

⌛ Testing commit f5b6a0c with merge a5978e5...

bors added a commit that referenced this pull request Apr 7, 2020
rustup: update for the new Ty::walk interface.

The first commit fixes a portability bug in `setup-toolchain.sh`, while the second rewrites the handling of "trait impl methods" in `use_self` - even if `Ty::walk` could've still been used, it was IMO a misuse.

This could also serve as a PSA: *please* use `hir_ty_to_ty` instead of trying to compare `hir::Ty`s between themselves or against semantic `Ty`s. Its "quasi-deprecation" is 3 years old and doesn't really mean anything, just that it's currently uncached and that we should eventually querify it (either for a single HIR node, or for all of the nodes in an entire definition).

---

changelog: none
@bors
Copy link
Collaborator

bors commented Apr 7, 2020

💔 Test failed - checks-action_remark_test

@flip1995
Copy link
Member

flip1995 commented Apr 7, 2020

Merging by hand, as per current policy due to GHA.

@flip1995 flip1995 merged commit d342cee into rust-lang:master Apr 7, 2020
@eddyb eddyb deleted the rustup branch April 7, 2020 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants