Experienced compiler error with simple test project #83411
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Just the example code from the SDL2 crate
Meta
rustc --version --verbose
:Error output
Backtrace
``` 0: rust_begin_unwind at /rustc/1705a7d64b833d1c4b69958b0627bd054e6d764b/library/std/src/panicking.rs:493:5 1: std::panicking::begin_panic_fmt at /rustc/1705a7d64b833d1c4b69958b0627bd054e6d764b/library/std/src/panicking.rs:435:5 2: rustc_query_system::query::plumbing::incremental_verify_ich 3: rustc_query_system::query::plumbing::load_from_disk_and_cache_in_memory 4: rustc_query_system::query::plumbing::get_query_impl 5: ::predicates_of 6: rustc_middle::ty::generics::GenericPredicates::instantiate_into 7: rustc_middle::ty::generics::GenericPredicates::instantiate 8: rustc_typeck::check::method::::lookup_method_in_trait 9: rustc_typeck::check::op::::lookup_op_method 10: rustc_typeck::check::op::::check_overloaded_binop 11: rustc_typeck::check::op::::check_binop 12: rustc_typeck::check::expr::::check_expr_with_expectation 13: rustc_typeck::check::expr::::check_expr_kind 14: rustc_typeck::check::expr::::check_expr_with_expectation 15: rustc_typeck::check::expr::::check_expr_kind 16: rustc_typeck::check::expr::::check_expr_with_expectation 17: rustc_typeck::check::fn_ctxt::checks::::check_block_with_expected 18: rustc_typeck::check::expr::::check_expr_with_expectation 19: rustc_typeck::check::_match::::check_match 20: rustc_typeck::check::expr::::check_expr_kind 21: rustc_typeck::check::expr::::check_expr_with_expectation 22: rustc_typeck::check::fn_ctxt::checks::::check_block_with_expected 23: rustc_typeck::check::expr::::check_expr_with_expectation 24: rustc_typeck::check::fn_ctxt::checks::::check_stmt 25: rustc_typeck::check::fn_ctxt::checks::::check_block_with_expected 26: rustc_typeck::check::expr::::check_expr_with_expectation 27: rustc_typeck::check::expr::::check_expr_kind 28: rustc_typeck::check::expr::::check_expr_with_expectation 29: rustc_typeck::check::fn_ctxt::checks::::check_stmt 30: rustc_typeck::check::fn_ctxt::checks::::check_block_with_expected 31: rustc_typeck::check::expr::::check_expr_with_expectation 32: rustc_typeck::check::expr::::check_return_expr 33: rustc_typeck::check::check::check_fn 34: rustc_infer::infer::InferCtxtBuilder::enter 35: rustc_typeck::check::typeck 36: rustc_middle::dep_graph::::with_deps 37: rustc_query_system::dep_graph::graph::DepGraph::with_task_impl 38: rustc_query_system::query::plumbing::force_query_with_job 39: rustc_query_system::query::plumbing::get_query_impl 40: ::typeck 41: rustc_middle::ty::::par_body_owners 42: rustc_typeck::check::typeck_item_bodies 43: rustc_middle::dep_graph::::with_deps 44: rustc_query_system::dep_graph::graph::DepGraph::with_task_impl 45: rustc_data_structures::stack::ensure_sufficient_stack 46: rustc_query_system::query::plumbing::force_query_with_job 47: rustc_query_system::query::plumbing::get_query_impl 48: ::typeck_item_bodies 49: rustc_session::utils::::time 50: rustc_typeck::check_crate 51: rustc_interface::passes::analysis 52: rustc_middle::dep_graph::::with_deps 53: rustc_query_system::dep_graph::graph::DepGraph::with_task_impl 54: rustc_data_structures::stack::ensure_sufficient_stack 55: rustc_query_system::query::plumbing::force_query_with_job 56: rustc_query_system::query::plumbing::get_query_impl 57: ::analysis 58: rustc_interface::passes::QueryContext::enter 59: rustc_interface::queries::::enter 60: rustc_span::with_source_map 61: rustc_interface::interface::create_compiler_and_run 62: scoped_tls::ScopedKey::set ```
My cargo.toml looks as follows:
Hope this helps!
The text was updated successfully, but these errors were encountered: