-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
thread 'Worker' panicked at 'called Option::unwrap()
on a None
value', /github/home/.cargo/registry/src/github.com-1ecc6299db9ec823/chalk-solve-0.86.0/src/clauses/builtin_traits/fn_family.rs:90:55
#13531
Comments
The crash in question happens when replacing the sym::bswap => {
intrinsic_args!(fx, args => (arg); intrinsic);
let val = arg.load_scalar(fx);
let res = match fx.bcx.func.dfg.value_type(val) {
types::I8 => val,
types::I128 => {
// FIXME(bytecodealliance/wasmtime#1092) bswap.i128 is not yet implemented
let (lsb, msb) = fx.bcx.ins().isplit(val);
let lsb_swap = fx.bcx.ins().bswap(lsb);
}
_ => fx.bcx.ins().bswap(val),
};
let res = CValue::by_val(res, arg.layout());
ret.write_cvalue(fx, res);
} |
Crashing commit: rust-lang/rustc_codegen_cranelift@0f8111a (from the |
Running into the same panic being spammed whenever I copy-paste this code into a new file: https://pastebin.com/Wnfn30SV
|
I am also experiencing this with VS Code extension version VS Code version
For me it occurs occasionally when I open VS Code and a |
Reproducible in the version VS Code version
I'm trying to autocomplete Restarted VS Code - everything works. |
I've tried to reproduce the crash several times only to fail. Judging from the stack trace, this panic really shouldn't happen at all, yet it happens somehow, and I'm starting to suspect this might be an issue around salsa's recomputation. If anyone happens to get the crash reproducible, please report it here -- I'd be more than happy to investigate. Otherwise, please restart rust-analyzer and it should start working just fine again. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I feel like this might be another chalk bug as it should not possible for this to happen (especially with a sysroot loaded) |
@Veykril could it be that we're hitting |
then we should be able to reproduce this easily by setting the sysroot to |
I'm not sure. What if there's a difference between "no sysroot" and "sysroot, but not yet loaded"? I added some logging to
(which seems to get cached, so it fails every time afterwards). While a normal load yields:
EDIT: and of course, when it fails we know about e.g. |
That sounds like we might be hitting the salsa bug here (where things are not getting properly invalidated)? |
Ye so looking at the source we should never be able to hit this unless there is something buggy going on. The panicking code path here can only be reached if we have successfully created the HIR trait representing the Fn* trait at which point the |
While working on cg_clif:
rust-analyzer version: rust-analyzer version: 0.3.1258-standalone
rustc version: rustc 1.66.0-nightly (6e95b6da8 2022-10-22)
relevant settings: N/A
The text was updated successfully, but these errors were encountered: