Open hannydevelop opened 1 year ago
oof! turns out this has to do with encoding. I believe I held down the shift
+ space bar
button. This effect created a whitespace with weird encoding.
STEPS TO REPRODUCE
Hold down the shift
+ space bar
button anywhere in the code that works. Run or build code, it'll throw an error.
oof! turns out this has to do with encoding. I believe I held down the
shift
+space bar
button. This effect created a whitespace with weird encoding.STEPS TO REPRODUCE Hold down the
shift
+space bar
button anywhere in the code that works. Run or build code, it'll throw an error.
Hi, does this still crash for you in latest stable?
Code
I have the same code, one runs the other returns an error. Here's the code that returns an error below:
Here's the one that passes:
Meta
rustc --version --verbose
:Error output
Backtrace
``` stack backtrace: 0: _rust_begin_unwind 1: core::panicking::panic_fmt 2: rustc_query_system::query::plumbing::incremental_verify_ich_failed 3: rustc_query_system::query::plumbing::incremental_verify_ich::>, core::result::Result<&rustc_middle::infer::canonical::Canonical>, rustc_middle::traits::query::NoSolution>>
4: rustc_query_system::query::plumbing::try_load_from_disk_and_cache_in_memory::>, core::result::Result<&rustc_middle::infer::canonical::Canonical>, rustc_middle::traits::query::NoSolution>>
5: rustc_query_system::query::plumbing::try_execute_query::>, core::result::Result<&rustc_middle::infer::canonical::Canonical>, rustc_middle::traits::query::NoSolution>>>
6: rustc_query_system::query::plumbing::get_query::
7: ::type_op_prove_predicate
8: ::perform_query
9: ::fully_perform_into
10: as rustc_trait_selection::traits::query::type_op::TypeOp>::fully_perform
11: ::prove_predicate
12: ::prove_trait_ref
13: ::check_rvalue
14: ::typeck_mir
15: rustc_borrowck::type_check::type_check
16: rustc_borrowck::nll::compute_regions
17: rustc_borrowck::do_mir_borrowck
18: rustc_borrowck::mir_borrowck
19: >::call_once
20: >::with_task::
21: rustc_query_system::query::plumbing::try_execute_query::>
22: rustc_query_system::query::plumbing::get_query::
23: ::time::<(), rustc_interface::passes::analysis::{closure#2}>
24: rustc_interface::passes::analysis
25: >::with_task::>
26: rustc_query_system::query::plumbing::try_execute_query::>>
27: rustc_query_system::query::plumbing::get_query::
28: ::enter::>
29: rustc_span::with_source_map::, rustc_interface::interface::run_compiler, rustc_driver::run_compiler::{closure#1}>::{closure#0}::{closure#1}>
30: >::set::, rustc_driver::run_compiler::{closure#1}>::{closure#0}, core::result::Result<(), rustc_errors::ErrorGuaranteed>>
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: internal compiler error: unexpected panic
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.67.0-nightly (42325c525 2022-11-11) running on aarch64-apple-darwin
note: compiler flags: --crate-type bin -C embed-bitcode=no -C split-debuginfo=unpacked -C debuginfo=2 -C incremental=[REDACTED]
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
#0 [type_op_prove_predicate] evaluating `type_op_prove_predicate` `ProvePredicate { predicate: Binder(TraitPredicate(, rocket_http::status::Status, rocket::data::data::Data<'_>>>>> as core::ops::unsize::CoerceUnsized, rocket_http::status::Status, rocket::data::data::Data<'b>>> + core::marker::Send>>>>, polarity:Positive), []) }`
#1 [mir_borrowck] borrow-checking `::into_info::monomorphized_function`
#2 [analysis] running analysis passes on this crate
end of query stack
```