Skip to content

ICE with incorrect use of box (...) ... syntax #14084

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
huonw opened this issue May 10, 2014 · 0 comments
Closed

ICE with incorrect use of box (...) ... syntax #14084

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

Comments

@huonw
Copy link
Member

huonw commented May 10, 2014

fn main() {
    box ( () ) 0;
}
boxerror.rs:2:5: 2:17 error: only the managed heap and exchange heap are currently supported
boxerror.rs:2     box ( () ) 0;
                  ^~~~~~~~~~~~
error: internal compiler error: no type for expr in fcx 0x7f86a744d1f0
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>', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/diagnostic.rs:155
stack backtrace:
   1:     0x7f86aa5dd8f0 - rt::backtrace::imp::write::h340bb8281d15ea8bULG::v0.11.pre
   2:     0x7f86aa540890 - rt::unwind::begin_unwind_inner::ha5714b5a6cc155c7XlG::v0.11.pre
   3:     0x7f86a8d64da0 - rt::unwind::begin_unwind::h5789193983823282263::v0.11.pre
   4:     0x7f86a8d65760 - diagnostic::Handler::bug::h80d6b66aba079169d0b::v0.11.pre
   5:     0x7f86aadf3e80 - driver::session::Session::bug::h897259b04f4252c6EOj::v0.11.pre
   6:     0x7f86ab032690 - middle::typeck::check::FnCtxt<'a>::expr_ty::h2337632ebecc0584MO9::v0.11.pre
   7:     0x7f86ab0f86b0 - middle::typeck::check::check_stmt::h7163081a87ec573cITc::v0.11.pre
   8:     0x7f86ab0b9620 - middle::typeck::check::check_block_with_expected::h9fd251d9a78dad62FXc::v0.11.pre
   9:     0x7f86ab0b49b0 - middle::typeck::check::check_fn::hac748cb7e7308e44Ol8::v0.11.pre
  10:     0x7f86ab0b4750 - middle::typeck::check::check_bare_fn::h28a87458660755e0lb8::v0.11.pre
  11:     0x7f86ab0ad160 - middle::typeck::check::check_item::h48543c64daaebc31mI8::v0.11.pre
  12:     0x7f86ab0b4550 - middle::typeck::check::check_item_types::hde9a7e2b6728cc4bDa8::v0.11.pre
  13:     0x7f86ab1fc0b0 - util::common::time::h10787029449497713397::v0.11.pre
  14:     0x7f86ab1faec0 - middle::typeck::check_crate::h72f3f2daa8759965u7v::v0.11.pre
  15:     0x7f86ab647cd0 - driver::driver::phase_3_run_analysis_passes::hde3b57d26e526733yZh::v0.11.pre
  16:     0x7f86ab64dd50 - driver::driver::compile_input::h6759abd4323d54dcDpi::v0.11.pre
  17:     0x7f86ab673b70 - run_compiler::hbee176bc48ee6bff8Sp::v0.11.pre
  18:     0x7f86ab68fee0 - main_args::closure.93842
  19:     0x7f86ab68e5c0 - monitor::closure.93717
  20:     0x7f86ab688d80 - task::TaskBuilder::try::closure.93483
  21:     0x7f86ad5a60b0 - task::spawn_opts::closure.7345
  22:     0x7f86aa5d4b50 - rt::task::Task::run::closure.28893
  23:     0x7f86aa5f5ed0 - rust_try
  24:     0x7f86aa5d4990 - rt::task::Task::run::hf6429b1224a2ea83FaE::v0.11.pre
  25:     0x7f86ad5a5e80 - task::spawn_opts::closure.7318
  26:     0x7f86aa5dc380 - rt::thread::thread_start::h456eeec20de48520QSE::v0.11.pre
  27:     0x7f86a9f19fa0 - start_thread
  28:     0x7f86aa214a09 - __clone
  29:                0x0 - <unknown>

@huonw huonw added the I-ICE label May 10, 2014
bors added a commit to rust-lang-ci/rust that referenced this issue Feb 13, 2023
fix: Fix parsing of nested tuple field accesses in a cursed way

This is absolutely terrible but seems to work. Macro fragment parsing comes next.
bors pushed a commit to rust-lang-ci/rust that referenced this issue Jan 28, 2025
Currently, the CI pipeline triggers `Lintcheck` for all PRs. However,
this check takes significant amount of time and seems unnecessary for
some certain directories that are frequently updated.

r? flip1995

changelog: none
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

1 participant