Compiling advent v0.1.0 (/home/connor/Scratch/advent) warning: unused import: `core::time` --> src/2022/main.rs:1:5 | 1 | use core::time; | ^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default error: internal compiler error: compiler/rustc_middle/src/ty/context.rs:703:13: node_type: no type for node `expr { let res = $crate::fmt::format($crate::__export::format_args!($($arg)*)); res } (hir_id=HirId { owner: DefId(0:72 ~ 2022[472a]::main), local_id: 265 })` thread 'rustc' panicked at 'Box', /rustc/897e37553bba8b42751c67658967889d11ecd120/compiler/rustc_errors/src/lib.rs:1462:9 stack backtrace: 0: 0x7fac76126d40 - std::backtrace_rs::backtrace::libunwind::trace::h32eb3e08e874dd27 at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 1: 0x7fac76126d40 - std::backtrace_rs::backtrace::trace_unsynchronized::haa3f451d27bc11a5 at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: 0x7fac76126d40 - std::sys_common::backtrace::_print_fmt::h5b94a01bb4289bb5 at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/std/src/sys_common/backtrace.rs:66:5 3: 0x7fac76126d40 - ::fmt::hb070b7fa7e3175df at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/std/src/sys_common/backtrace.rs:45:22 4: 0x7fac76181bfe - core::fmt::write::hd5207aebbb9a86e9 at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/core/src/fmt/mod.rs:1202:17 5: 0x7fac76117935 - std::io::Write::write_fmt::h3bd699bbd129ab8a at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/std/src/io/mod.rs:1679:15 6: 0x7fac761299f3 - std::sys_common::backtrace::_print::h7a21be552fdf58da at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/std/src/sys_common/backtrace.rs:48:5 7: 0x7fac761299f3 - std::sys_common::backtrace::print::ha85c41fe4dd80b13 at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/std/src/sys_common/backtrace.rs:35:9 8: 0x7fac761299f3 - std::panicking::default_hook::{{closure}}::h04cca40023d0eeca at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/std/src/panicking.rs:295:22 9: 0x7fac761296df - std::panicking::default_hook::haa3ca8c310ed5402 at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/std/src/panicking.rs:314:9 10: 0x7fac789572e1 - rustc_driver[cfb34b1539811fe8]::DEFAULT_HOOK::{closure#0}::{closure#0} 11: 0x7fac7612a22d - std::panicking::rust_panic_with_hook::h7b190ce1a948faac at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/std/src/panicking.rs:702:17 12: 0x7fac798dde51 - std[71cb4861428b0c25]::panicking::begin_panic::::{closure#0} 13: 0x7fac798db966 - std[71cb4861428b0c25]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !> 14: 0x7fac79935316 - std[71cb4861428b0c25]::panicking::begin_panic:: 15: 0x7fac798d85f6 - std[71cb4861428b0c25]::panic::panic_any:: 16: 0x7fac798d71dd - ::bug::<&alloc[188ed69dc0d14b4b]::string::String> 17: 0x7fac798d6c10 - ::bug::<&alloc[188ed69dc0d14b4b]::string::String> 18: 0x7fac799937ed - rustc_middle[a9ca1c3f9fd197cd]::ty::context::tls::with_context_opt::::{closure#0}, ()>::{closure#0}, ()> 19: 0x7fac79996c86 - rustc_middle[a9ca1c3f9fd197cd]::util::bug::opt_span_bug_fmt:: 20: 0x7fac77334a83 - rustc_middle[a9ca1c3f9fd197cd]::util::bug::bug_fmt 21: 0x7fac7795559d - ::expr_ty_adjusted 22: 0x7fac797582b5 - ::note_obligation_cause_code:: 23: 0x7fac79767c5f - ::note_obligation_cause 24: 0x7fac7975f068 - ::report_selection_error 25: 0x7fac7976b58a - ::report_fulfillment_error 26: 0x7fac7975db50 - ::report_fulfillment_errors 27: 0x7fac775e75f7 - ::check_call 28: 0x7fac77596f27 - ::check_expr_with_expectation_and_args 29: 0x7fac775e202f - ::check_decl 30: 0x7fac775de853 - ::check_block_with_expected 31: 0x7fac77597050 - ::check_expr_with_expectation_and_args 32: 0x7fac7759987c - ::check_expr_with_expectation_and_args 33: 0x7fac775de97f - ::check_block_with_expected 34: 0x7fac77597050 - ::check_expr_with_expectation_and_args 35: 0x7fac77618071 - ::check_match::{closure#0} 36: 0x7fac77598443 - ::check_expr_with_expectation_and_args 37: 0x7fac775de8a1 - ::check_block_with_expected 38: 0x7fac7759a1b3 - ::check_expr_with_expectation_and_args 39: 0x7fac77618071 - ::check_match::{closure#0} 40: 0x7fac77598443 - ::check_expr_with_expectation_and_args 41: 0x7fac775987b8 - ::check_expr_with_expectation_and_args 42: 0x7fac775de8a1 - ::check_block_with_expected 43: 0x7fac77597050 - ::check_expr_with_expectation_and_args 44: 0x7fac77f914d6 - ::check_return_expr 45: 0x7fac77f8986a - rustc_typeck[4a3b2f91c49b3c3e]::check::check::check_fn 46: 0x7fac77f7ca75 - ::enter::<&rustc_middle[a9ca1c3f9fd197cd]::ty::context::TypeckResults, ::enter::{closure#1}, &rustc_middle[a9ca1c3f9fd197cd]::ty::context::TypeckResults>::{closure#0}> 47: 0x7fac77f7ac29 - rustc_typeck[4a3b2f91c49b3c3e]::check::typeck 48: 0x7fac782268ad - >::with_task:: 49: 0x7fac78219664 - rustc_query_system[860ed7b39cdfb46b]::query::plumbing::try_execute_query::> 50: 0x7fac78893cae - ::typeck 51: 0x7fac786d4057 - rustc_data_structures[62ce3989ce8140ee]::sync::par_for_each_in::<&[rustc_span[8f00505efff112e2]::def_id::LocalDefId], ::par_body_owners::{closure#0}> 52: 0x7fac786d3e13 - rustc_typeck[4a3b2f91c49b3c3e]::check::typeck_item_bodies 53: 0x7fac785de2e5 - >::with_task:: 54: 0x7fac785dd2be - rustc_query_system[860ed7b39cdfb46b]::query::plumbing::try_execute_query::> 55: 0x7fac785dccc7 - rustc_query_system[860ed7b39cdfb46b]::query::plumbing::get_query:: 56: 0x7fac77ccaa9f - ::time::<(), rustc_typeck[4a3b2f91c49b3c3e]::check_crate::{closure#7}> 57: 0x7fac77cca65f - rustc_typeck[4a3b2f91c49b3c3e]::check_crate 58: 0x7fac77cc9c27 - rustc_interface[3182dd864eff9d7d]::passes::analysis 59: 0x7fac78728382 - >::with_task::> 60: 0x7fac78727a4a - rustc_query_system[860ed7b39cdfb46b]::query::plumbing::try_execute_query::>> 61: 0x7fac78727517 - rustc_query_system[860ed7b39cdfb46b]::query::plumbing::get_query:: 62: 0x7fac77813897 - ::enter::> 63: 0x7fac7780728c - rustc_interface[3182dd864eff9d7d]::interface::create_compiler_and_run::, rustc_driver[cfb34b1539811fe8]::run_compiler::{closure#1}> 64: 0x7fac77805ac1 - >::set::, rustc_driver[cfb34b1539811fe8]::run_compiler::{closure#1}>::{closure#0}, core[8c92e53db3fc2eaa]::result::Result<(), rustc_errors[f77a66b68db622d5]::ErrorGuaranteed>> 65: 0x7fac778057af - std[71cb4861428b0c25]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver[cfb34b1539811fe8]::run_compiler::{closure#1}>::{closure#0}, core[8c92e53db3fc2eaa]::result::Result<(), rustc_errors[f77a66b68db622d5]::ErrorGuaranteed>>::{closure#0}, core[8c92e53db3fc2eaa]::result::Result<(), rustc_errors[f77a66b68db622d5]::ErrorGuaranteed>> 66: 0x7fac787bad70 - <::spawn_unchecked_, rustc_driver[cfb34b1539811fe8]::run_compiler::{closure#1}>::{closure#0}, core[8c92e53db3fc2eaa]::result::Result<(), rustc_errors[f77a66b68db622d5]::ErrorGuaranteed>>::{closure#0}, core[8c92e53db3fc2eaa]::result::Result<(), rustc_errors[f77a66b68db622d5]::ErrorGuaranteed>>::{closure#1} as core[8c92e53db3fc2eaa]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} 67: 0x7fac76134003 - as core::ops::function::FnOnce>::call_once::h49f797984e2121bf at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/alloc/src/boxed.rs:1940:9 68: 0x7fac76134003 - as core::ops::function::FnOnce>::call_once::hfa4f3d0ee6440e0b at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/alloc/src/boxed.rs:1940:9 69: 0x7fac76134003 - std::sys::unix::thread::Thread::new::thread_start::h62ca48b42d48a8fc at /rustc/897e37553bba8b42751c67658967889d11ecd120/library/std/src/sys/unix/thread.rs:108:17 70: 0x7fac75ffaea7 - start_thread at ./nptl/./nptl/pthread_create.c:477:8 71: 0x7fac75f18a2f - __clone at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95 72: 0x0 - 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.65.0 (897e37553 2022-11-02) running on x86_64-unknown-linux-gnu note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 -C incremental=[REDACTED] note: some of the compiler flags provided by cargo are hidden query stack during panic: #0 [typeck] type-checking `main` #1 [typeck_item_bodies] type-checking all item bodies #2 [analysis] running analysis passes on this crate end of query stack warning: `advent` (bin "2022") generated 1 warning error: could not compile `advent`; 1 warning emitted