-
Notifications
You must be signed in to change notification settings - Fork 13.4k
ice: already mutably borrowed: BorrowError
#117144
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
already mutably borrowed: BorrowError
Regression in 151256b probably #116792 ? cc @JonasAlaif |
This is due to #116841. The function name cc @chenyukang |
oops @chenyukang race condition, clicked the button before I saw you self-assigned -- I already found a fix 😆 |
yeah, go ahead please. |
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Oct 25, 2023
Rollup merge of rust-lang#117152 - compiler-errors:no-ret-coercion, r=chenyukang Fix unwrap suggestion for async fn Use `body_fn_sig` to get the expected return type of the function instead of `ret_coercion` in `FnCtxt`. This avoids accessing the `ret_coercion` when it's already mutably borrowed (e.g. when checking `return` expressions). Fixes rust-lang#117144 r? `@chenyukang`
4 tasks
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
snippet:
Version information
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc
Program output
The text was updated successfully, but these errors were encountered: