Skip to content

ICE: not enough type parameters supplied to Box<T> #14092

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

Closed
erickt opened this issue May 10, 2014 · 0 comments
Closed

ICE: not enough type parameters supplied to Box<T> #14092

erickt opened this issue May 10, 2014 · 0 comments
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@erickt
Copy link
Contributor

erickt commented May 10, 2014

creduce found this ICE:

fn fn1(0 : Box) {}

That errors with:

ice.rs:1:12: 1:15 error: internal compiler error: not enough type parameters supplied to `Box<T>`
ice.rs:1 fn fn1(_ : Box) {}
                    ^~~
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'Box<Any>', /Users/erickt/rust/rust-master/src/libsyntax/diagnostic.rs:99
bors added a commit to rust-lang-ci/rust that referenced this issue Feb 13, 2023
fix: Don't panic on broken syntax trees in adjustment inlay hints

These should be unreachable, but apparently with broken enough syntax trees (I assume mismatched parens), we do reach these unreachable calls. Haven't quite figured out when this happens though.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

2 participants