-
Notifications
You must be signed in to change notification settings - Fork 1.7k
unexpected panic unexpected ambiguity
at 'try_normalize_generic_arg_after_erasing_regions' query
#10009
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
Comments
unexpected ambiguity
at 'try_normalize_generic_arg_after_erasing_regions' query
In 1.64 and earlier versions |
Also interestingly it doesn't panic if we give it |
From what I can tell, either one of these triggers the error (I don't understand why, though):
Also, here is where the error is triggered within the compiler: |
@smoelius yes, the panic goes away for me if I remove the let f: function![() -> Result<i32, &'static str>] = function0(always_fails);
- lua.set("always_fails", &f);
+ lua.set("always_fails", f); Thus changing the deduced generic argument to the But what I noticed is that it also goes aways if I change the signature of - pub fn set<'lua, I, V, E>(&'lua self, index: I, value: V)
+ pub fn set<'lua, I, V>(&'lua self, index: I, value: V)
where
I: Borrow<str>,
- V: PushOneInto<&'lua Self, Err = E>,
- E: Into<Void>,
+ V: PushOneInto<&'lua Self>,
+ <V as PushInto<&'lua Self>>::Err: Into<Void>, Not sure if this is of any help |
Getting the same ICE when running clippy on the |
I'm running
cargo clippy
(Clippy version: clippy 0.1.65 (897e375 2022-11-02)) on my library and it panics.The message is something like:
error: internal compiler error: compiler/rustc_trait_selection/src/traits/query/normalize.rs:258:21: unexpected ambiguity: Canonical { .. }
(see bellow for more details)Reproduce
Here's a link to my project and the commit on which clippy panics:
https://git.picodata.io/picodata/picodata/tarantool-module/-/commit/d417c97904ac614b577478df0b6aaaa5174a22c2
Simply do:
git clone https://git.picodata.io/picodata/picodata/tarantool-module.git cd tarantool-module git checkout d417c97904ac614b577478df0b6aaaa5174a22c2 cargo clippy
You'll get this:
Can't add any more context at this point
The text was updated successfully, but these errors were encountered: