-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ICE: compiler/rustc_hir/src/stable_hash_impls.rs
None
with cargo build
of async fn in trait
#122508
Comments
This will probably make a simple |
minimal repro: cargo new dontpanic
cd dontpanic
echo "trait MyTrait {
async fn bar(&self) -> i32;
}
pub fn main() {}" > src/main.rs
cargo +master build |
compiler/rustc_hir/src/stable_hash_impls.rs
None
compiler/rustc_hir/src/stable_hash_impls.rs
None
with cargo build
of async fn in trait
Hmm, when writing #120943 I tried to trigger the |
Fixed in #122517. |
Fill in HIR hash for associated opaque types Fixes rust-lang#122508
A workaround to this issue should be to use |
run but. if you use |
There’s also an environment variable to control incremental compilation, so you could set CARGO_INCREMENTAL=0 to do that. |
I think this error should be completely fixed, otherwise it will still fail to compile in the IDE environment and the automatic build environment of GitHub Action |
Sure, we were just offering a workaround to unblock people temporarily. The fix is already present on master and should be available in tomorrow’s nightly. |
Oh, this is great |
auto-reduced (treereduce-rust):
original:
Version information
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc -Zincremental-verify-ich=yes -Cincremental=<dir> -Cdebuginfo=2
Program output
The text was updated successfully, but these errors were encountered: