-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
internal compiler error: coherence failed to report ambiguit #23853
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
Also got this problem when building |
Same error compiling plugin
version info:
|
I get a similar error when compiling handlebars-iron:
This might be a dup of #21942 |
nikomatsakis
added a commit
to nikomatsakis/rust
that referenced
this issue
Apr 6, 2015
`Trait`, prefer the object. Also give a nice error for attempts to manually `impl Trait for Trait`, since they will be ineffectual. Fixes rust-lang#24015. Fixes rust-lang#24051. Fixes rust-lang#24037. Fixes rust-lang#23853. Fixes rust-lang#21942. cc rust-lang#21756.
bors
added a commit
that referenced
this issue
Apr 6, 2015
If we find a blanket impl for `Trait` but we're matching on an object `Trait`, prefer the object (I think we could perhaps go either way, but this seems safer). Also give a nice error for attempts to manually `impl Trait for Trait`, since they will be ineffectual. This fixes the problems around ambiguity ICEs relating to `Any` and `MarkerTrait` that were cropping up all over the place. There may still be similar ICEs reported in #21756 that this PR does not address. Fixes #24015. Fixes #24051. Fixes #24037. Fixes #23853. Fixes #21942. cc #21756. cc @alexcrichton (this fixes crates.io) r? @aturon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying the example from http://ironframework.io and got the following error:
Steps to reproduce this error:
edit
main.rs
as followingadd following lines to
Cargo.toml
RUST_BACKTRACE=1 cargo run
Output
Related Source file
cat /Users/max6/.cargo/registry/src/github.jparrowsec.cn-1ecc6299db9ec823/plugin-0.2.2/src/lib.rs
Backtrace and version information
rustc --version --verbose
:Backtrace:
The text was updated successfully, but these errors were encountered: