I am using the command:
maturin build --release -i py
to compile my rust project, just as I usually do. After I updated cargo using:
rustup update
I am getting the issue.
thread 'rustc' panicked at 'assertion failed: sentinel == STR_SENTINEL', /rustc/fc594f15669680fa70d255faec3ca3fb507c3405\compiler\rustc_serialize\src\opaque.rs:668:9
stack backtrace:
0: 0x7ff9a9789de2 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h21483e943f4ad906
1: 0x7ff9a97c5d0b - core::fmt::write::h8f4c7586035b3d2b
2: 0x7ff9a977ca2a - <std::io::IoSliceMut as core::fmt::Debug>::fmt::hc1ea61cfd970f48a
3: 0x7ff9a9789b2b - std::sys::common::alloc::realloc_fallback::h02615bcb1723d762
4: 0x7ff9a978d459 - std::panicking::default_hook::h97aed9cc52878577
5: 0x7ff9a978d0db - std::panicking::default_hook::h97aed9cc52878577
6: 0x7ff94ad40bed - rustc_driver[708e54b233d52623]::describe_lints
7: 0x7ff9a978ddc0 - std::panicking::rust_panic_with_hook::h5481405004a2be3e
8: 0x7ff9a978dadb - <std::panicking::begin_panic_handler::StrPanicPayload as core::panic::BoxMeUp>::get::h8f75b6be7202b578
9: 0x7ff9a978aadf - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h21483e943f4ad906
10: 0x7ff9a978d7d0 - rust_begin_unwind
11: 0x7ff9a97fbb85 - core::panicking::panic_fmt::hf042f640ecb61b9a
12: 0x7ff9a97fbc7c - core::panicking::panic::hc82148c9dacebd9a
13: 0x7ff94a7f8e92 - <rustc_span[ba0659062984d28f]::symbol::Symbol as rustc_serialize[23637142a4eedfd]::serialize::Decodable<rustc_metadata[98e650011caa748a]::rmeta::decoder::DecodeContext>>::decode
14: 0x7ff94a7fb384 - <rustc_metadata[98e650011caa748a]::rmeta::CrateRoot as rustc_serialize[23637142a4eedfd]::serialize::Decodable<rustc_metadata[98e650011caa748a]::rmeta::decoder::DecodeContext>>::decode
15: 0x7ff9491aa631 - <rustc_metadata[98e650011caa748a]::rmeta::decoder::DecodeContext as rustc_type_ir[fc3704f9ea8d6028]::codec::TyDecoder>::decode_alloc_id
16: 0x7ff9491ce819 - <rustc_metadata[98e650011caa748a]::rmeta::LazyTables as rustc_serialize[23637142a4eedfd]::serialize::Decodable<rustc_metadata[98e650011caa748a]::rmeta::decoder::DecodeContext>>::decode
17: 0x7ff9491cdc22 - <rustc_metadata[98e650011caa748a]::rmeta::LazyTables as rustc_serialize[23637142a4eedfd]::serialize::Decodable<rustc_metadata[98e650011caa748a]::rmeta::decoder::DecodeContext>>::decode
18: 0x7ff9491cd372 - <rustc_metadata[98e650011caa748a]::rmeta::LazyTables as rustc_serialize[23637142a4eedfd]::serialize::Decodable<rustc_metadata[98e650011caa748a]::rmeta::decoder::DecodeContext>>::decode
19: 0x7ff94a7c3dfe - <rustc_metadata[98e650011caa748a]::creader::CStore>::from_tcx
20: 0x7ff94a7bfbe2 - <rustc_metadata[98e650011caa748a]::creader::CStore>::from_tcx
21: 0x7ff9491b6067 - <rustc_metadata[98e650011caa748a]::creader::CrateLoader>::maybe_process_path_extern
22: 0x7ff94a21b6fc - <rustc_resolve[b0471a20b029691a]::Resolver>::legacy_const_generic_args
23: 0x7ff94a1fce92 - <rustc_resolve[b0471a20b029691a]::Resolver>::expect_module
24: 0x7ff94a22118c - <rustc_resolve[b0471a20b029691a]::Resolver>::legacy_const_generic_args
25: 0x7ff948dde564 - <rustc_resolve[b0471a20b029691a]::Resolver as rustc_expand[8a5109ae7be48694]::base::ResolverExpand>::resolve_imports
26: 0x7ff94a853bed - <rustc_expand[8a5109ae7be48694]::expand::MacroExpander>::fully_expand_fragment
27: 0x7ff94921e994 - <rustc_expand[8a5109ae7be48694]::expand::MacroExpander>::expand_crate
28: 0x7ff94853b49f - <rustc_interface[69234d9ab4221f]::queries::Linker>::link
29: 0x7ff9485477f9 - rustc_interface[69234d9ab4221f]::passes::configure_and_expand
30: 0x7ff9485371cb - <rustc_interface[69234d9ab4221f]::queries::Queries>::expansion
31: 0x7ff94850cfa5 - <rustc_middle[a6044308a342a685]::ty::SymbolName as core[7db624dd2df9ba7d]::fmt::Debug>::fmt
32: 0x7ff9484fd176 - <unknown>
33: 0x7ff9484f2b7d - <unknown>
34: 0x7ff9a979fe9c - std::sys::windows::thread::Thread::new::ha5690b04bc8c8d7a
35: 0x7ffa30167614 - BaseThreadInitThunk
36: 0x7ffa31ae26a1 - RtlUserThreadStart
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 (fc594f156 2023-01-24) running on x86_64-pc-windows-msvc
note: compiler flags: --crate-type lib -C opt-level=3 -C linker-plugin-lto -C codegen-units=1
note: some of the compiler flags provided by cargo are hidden
query stack during panic:
end of query stack
error: could not compile `socket2`
I am using the command:
maturin build --release -i py
to compile my rust project, just as I usually do. After I updated cargo using:rustup update
I am getting the issue.