Add InferCtxt::with_opaque_type_inference to get_body_with_borrowck_facts#89615
Merged
bors merged 1 commit intorust-lang:masterfrom Oct 7, 2021
Merged
Conversation
willcrichton
added a commit
to willcrichton/flowistry
that referenced
this pull request
Oct 7, 2021
Contributor
Collaborator
|
📌 Commit 549a68b has been approved by |
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Oct 7, 2021
…laumeGomez Rollup of 7 pull requests Successful merges: - rust-lang#89298 (Issue 89193 - Fix ICE when using `usize` and `isize` with SIMD gathers ) - rust-lang#89461 (Add `deref_into_dyn_supertrait` lint.) - rust-lang#89477 (Move items related to computing diffs to a separate file) - rust-lang#89559 (RustWrapper: adapt for LLVM API change) - rust-lang#89585 (Emit item no type error even if type inference fails) - rust-lang#89596 (Make cfg imply doc(cfg)) - rust-lang#89615 (Add InferCtxt::with_opaque_type_inference to get_body_with_borrowck_facts) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
hsqStephenZhang
pushed a commit
to hsqStephenZhang/flowistry
that referenced
this pull request
May 5, 2025
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.
mir_borrowckuseswith_opaque_type_inferencebefore callingdo_mir_borrowck:rust/compiler/rustc_borrowck/src/lib.rs
Line 132 in 0eabf25
However
get_body_with_borrowck_factsdoes not. Therefore I get an ICE eg when calling this function on the bodies of an async function as described here: https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/.E2.9C.94.20ICE.20when.20using.20get_body_with_borrowck_facts.20with.20asyncThis change fixes that bug.
r? @nikomatsakis