Skip to content
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

Panic due to result::unwrap() called on an Err value: TypeError(DiagnosticVoucher(PhantomData<()>)) at crates/analyzer/src/namespace/items.rs:1918:64 #967

Open
bshastry opened this issue Dec 1, 2023 · 2 comments

Comments

@bshastry
Copy link

bshastry commented Dec 1, 2023

use std::context::{Emittable}

struct Custom {}

impl Emittable for Custom {
  fn emit(self, _val: A) {}
}

panics here

let impl_param_ty = impl_param.typ.clone().unwrap();

Repro

fe build test.fe
@bshastry
Copy link
Author

bshastry commented Dec 6, 2023

This test also panics on driver2 here

let trait_inst = lower_trait_ref(db, trait_ref, impl_trait.scope()).unwrap();

@Y-Nak
Copy link
Collaborator

Y-Nak commented Dec 6, 2023

Thank you for reporting the error. Regarding v2, this error has been fixed in #942

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants