libstd: refactor future, remove get_ref, remove ~ indirection. - #4023
Closed
graydon wants to merge 1 commit into
Closed
libstd: refactor future, remove get_ref, remove ~ indirection.#4023graydon wants to merge 1 commit into
graydon wants to merge 1 commit into
Conversation
Contributor
|
Why remove get_ref? |
Contributor
|
I would definitely keep |
Contributor
Author
|
The removal of |
Contributor
Author
|
landed in a55ea48 |
RalfJung
added a commit
to RalfJung/rust
that referenced
this pull request
Nov 21, 2024
Preparing for merge from rustc
U007D
pushed a commit
to U007D/rust-mos
that referenced
this pull request
Aug 21, 2026
4023: Fix another crash from wrong binders r=matklad a=flodiebold Basically, if we had something like `dyn Trait<T>` (where `T` is a type parameter) in an impl we lowered that to `dyn Trait<^0.0>`, when it should be `dyn Trait<^1.0>` because the `dyn` introduces a new binder. With one type parameter, that's just wrong, with two, it'll lead to crashes. Co-authored-by: Florian Diebold <flodiebold@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Nothing too substantial, just tidying stuff up that erickt found.
r? @erickt or @brson perhaps?