Closed 0adb closed 2 years ago
I think this is a duplicate of #97173, and it's indeed fixed on beta/nightly.
but the instructions in the template don't say if that means I shouldn't file the issue anymore or just note that the error goes away on nightly/beta.
If the issue tracker has a similar issue and it's closed as fixed, you don't have to open an issue. But if you're unsure, I think it's totally okay to open a new issue, contributors will check if it's reported in the past, gets fixed, etc.
This time I'm going to close as the issue has been fixed already. Thanks for reporting!
(I'm not sure if I should be filing this issue. The instructions in the template say that if the error is encountered with the stable version of the compiler, that I should check that the error exists on nightly/beta. The error below does go away with nightly/beta, but the instructions in the template don't say if that means I shouldn't file the issue anymore or just note that the error goes away on nightly/beta. Apologies if it's the former.)
Code
in
src/main.rs
:in
src/lib.rs
:in
src/day1.rs
Meta
rustc --version --verbose
:(The error goes away when using beta version
beta-x86_64-unknown-linux-gnu (default) rustc 1.62.0-beta.5 (1bc802e99 2022-06-13)
or nightly versionnightly-x86_64-unknown-linux-gnu (default) rustc 1.63.0-nightly (21e9336fe 2022-06-18)
.)Error output
Backtrace
``` thread 'rustc' panicked at 'Box', compiler/rustc_errors/src/lib.rs:1309:13
stack backtrace:
0: std::panicking::begin_panic::
1: std::panic::panic_any::
2: ::drop
3: core::ptr::drop_in_place::
4: as core::ops::drop::Drop>::drop
5: core::ptr::drop_in_place::
6: rustc_span::with_source_map::, rustc_interface::interface::create_compiler_and_run, rustc_driver::run_compiler::{closure#1}>::{closure#1}>
7: rustc_interface::interface::create_compiler_and_run::, rustc_driver::run_compiler::{closure#1}>
8: >::set::, rustc_driver::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_errors::ErrorGuaranteed>>
```