Skip to content

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

eddyb added 3 commits April 7, 2020 19:51

Verified

This commit was signed with the committer’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was signed with the committer’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@flip1995
Copy link
Member

flip1995 commented Apr 7, 2020

@bors r+ p=3

@bors
Copy link
Contributor

bors commented Apr 7, 2020

📌 Commit f5b6a0c has been approved by flip1995

@bors
Copy link
Contributor

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
Contributor

bors commented Apr 7, 2020

⌛ Testing commit f5b6a0c with merge a5978e5...

bors added a commit that referenced this pull request Apr 7, 2020

Verified

This commit was signed with the committer’s verified signature.
ivanvc Iván Valdés Castillo
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
Contributor

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.

None yet

3 participants