warning: unused variable: `x`
--> src/main.rs:30:14
|
30 | let (x, y) = (args.window_size[0] / 2.0, args.window_size[1] / 2.0);
| ^ help: if this is intentional, prefix it with an underscore: `_x`
|
= note: `#[warn(unused_variables)]` on by default
warning: unused variable: `y`
--> src/main.rs:30:17
|
30 | let (x, y) = (args.window_size[0] / 2.0, args.window_size[1] / 2.0);
| ^ help: if this is intentional, prefix it with an underscore: `_y`
error: internal compiler error: compiler/rustc_middle/src/hir/map/mod.rs:306:18: impossible case reached
thread 'rustc' panicked at 'Box<Any>', /rustc/3f5aee2d5241139d808f4fdece0026603489afd1/library/std/src/panic.rs:59:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md
note: rustc 1.52.0-nightly (3f5aee2d5 2021-02-12) running on x86_64-unknown-linux-gnu
note: compiler flags: -C opt-level=3 -C embed-bitcode=no --crate-type bin
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [mir_borrowck] borrow-checking `App::update`
#1 [analysis] running analysis passes on this crate
end of query stack
error: aborting due to previous error; 2 warnings emitted
error: could not compile `particular`
Code
https://gist.github.com/hderms/06ab3dfcb50ef3bc01173205e5959d61
Meta
rustc --version --verbose
:Error output
Backtrace
``` thread 'rustc' panicked at 'Box', /rustc/3f5aee2d5241139d808f4fdece0026603489afd1/library/std/src/panic.rs:59:5
stack backtrace:
0: std::panicking::begin_panic
1: std::panic::panic_any
2: rustc_errors::HandlerInner::bug
3: rustc_errors::Handler::bug
4: rustc_middle::ty::context::tls::with_opt
5: rustc_middle::util::bug::opt_span_bug_fmt
6: rustc_middle::util::bug::bug_fmt
7: rustc_middle::hir::map::Map::item
8: rustc_mir::borrow_check::diagnostics::mutability_errors::::report_mutability_error
9: rustc_mir::borrow_check::MirBorrowckCtxt::access_place
10: rustc_mir::borrow_check::MirBorrowckCtxt::mutate_place
11: ::visit_statement_before_primary_effect
12: ::visit_results_in_block
13: rustc_mir::dataflow::framework::visitor::visit_results
14: rustc_mir::borrow_check::do_mir_borrowck
15: rustc_infer::infer::InferCtxtBuilder::enter
16: rustc_mir::borrow_check::mir_borrowck
17: rustc_middle::ty::query:: for rustc_middle::ty::query::queries::mir_borrowck>::compute
18: rustc_middle::dep_graph::::with_deps
19: rustc_query_system::dep_graph::graph::DepGraph::with_task_impl
20: rustc_data_structures::stack::ensure_sufficient_stack
21: rustc_query_system::query::plumbing::force_query_with_job
22: rustc_query_system::query::plumbing::get_query_impl
23: rustc_query_system::query::plumbing::ensure_query_impl
24: rustc_session::utils::::time
25: rustc_interface::passes::analysis
26: rustc_middle::ty::query:: for rustc_middle::ty::query::queries::analysis>::compute
27: rustc_middle::dep_graph::::with_deps
28: rustc_query_system::dep_graph::graph::DepGraph::with_task_impl
29: rustc_data_structures::stack::ensure_sufficient_stack
30: rustc_query_system::query::plumbing::force_query_with_job
31: rustc_query_system::query::plumbing::get_query_impl
32: rustc_interface::passes::QueryContext::enter
33: rustc_interface::queries::::enter
34: rustc_span::with_source_map
35: scoped_tls::ScopedKey::set
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
```