Cleanup some EarlyBinder::skip_binder() -> EarlyBinder::subst_identity()#112220
Merged
bors merged 1 commit intorust-lang:masterfrom Jun 6, 2023
Merged
Cleanup some EarlyBinder::skip_binder() -> EarlyBinder::subst_identity()#112220bors merged 1 commit intorust-lang:masterfrom
EarlyBinder::skip_binder() -> EarlyBinder::subst_identity()#112220bors merged 1 commit intorust-lang:masterfrom
Conversation
Collaborator
|
Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
kylematsuda
commented
Jun 2, 2023
src/librustdoc/clean/blanket_impl.rs
Outdated
Contributor
Author
There was a problem hiding this comment.
There are some skip_binder lower down in this function too. Should those be subst_identity as well?
Contributor
Author
There was a problem hiding this comment.
thanks, just updated the commit to add those 👍
Contributor
Author
There was a problem hiding this comment.
I remember a similar pattern in Instance::subst_mir that I used skip_binder for previously:
rust/compiler/rustc_middle/src/ty/instance.rs
Lines 581 to 591 in a9baa16
Should that one also be subst_identity()?
Contributor
|
@rustbot author |
8bdd3c4 to
57cbe25
Compare
compiler-errors
approved these changes
Jun 6, 2023
Contributor
|
@bors r+ rollup |
Collaborator
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this pull request
Jun 6, 2023
…piler-errors Cleanup some `EarlyBinder::skip_binder()` -> `EarlyBinder::subst_identity()` fix some incorrect `skip_binder()`'s as identified in rust-lang#112006 (review) r? `@compiler-errors` `@lcnr` `@jackh726` (hope it's alright to just tag everyone who commented 😅)
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Jun 6, 2023
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#111058 (Correct fortanix LVI test print function) - rust-lang#111369 (Added custom risc32-imac for esp-espidf target) - rust-lang#111962 (Make GDB Python Pretty Printers loadable after spawning GDB, avoiding required `rust-gdb`) - rust-lang#112019 (Don't suggest changing `&self` and `&mut self` in function signature to be mutable when taking `&mut self` in closure) - rust-lang#112199 (Fix suggestion for matching struct with `..` on both ends) - rust-lang#112220 (Cleanup some `EarlyBinder::skip_binder()` -> `EarlyBinder::subst_identity()`) - rust-lang#112325 (diagnostics: do not suggest type name tweaks on type-inferred closure args) r? `@ghost` `@rustbot` modify labels: rollup
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.
fix some incorrect
skip_binder()'s as identified in #112006 (review)r? @compiler-errors @lcnr @jackh726
(hope it's alright to just tag everyone who commented 😅)