- Notifications
You must be signed in to change notification settings - Fork 14.1k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-let_elseIssues related to let-else statements (RFC 3137)Issues related to let-else statements (RFC 3137)I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Code
// https://github.com/HTG-YT/HarTex-rust-discord-bot/blob/nightly/discord-frontend/loadbal/bin/requests.rsMeta
rustc --version --verbose:
rustc 1.64.0-nightly (0f4bcadb4 2022-07-30) binary: rustc commit-hash: 0f4bcadb46006bc484dad85616b484f93879ca4e commit-date: 2022-07-30 host: x86_64-pc-windows-msvc release: 1.64.0-nightly LLVM version: 14.0.6 Error output
error: internal compiler error: no errors encountered even though `delay_span_bug` issued error: internal compiler error: broken MIR in Item(WithOptConstParam { did: DefId(0:63 ~ loadbal[4911]::requests::handle_request::{closure#0}), const_param_did: None }) (end of phase transition to Optimized) at bb440[0]: use of local _137, which has no storage here --> loadbal\bin\requests.rs:51:6 | 51 | }; | ^ | = note: delayed at compiler\rustc_const_eval\src\transform\validate.rs:129:36 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.64.0-nightly (0f4bcadb4 2022-07-30) running on x86_64-pc-windows-msvc note: compiler flags: --crate-type bin -C opt-level=3 -C embed-bitcode=no -C linker=rust-lld note: some of the compiler flags provided by cargo are hidden query stack during panic: end of query stack error: could not compile `loadbal` Backtrace
thread 'rustc' panicked at 'Box<dyn Any>', compiler\rustc_errors\src\lib.rs:1426:13 stack backtrace: 0: 0x7ff8197a9f0f - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h4bb26926f73ff06f 1: 0x7ff8197e581a - core::fmt::write::h0bf51c604bae69f0 2: 0x7ff81979cc0a - <std::io::IoSliceMut as core::fmt::Debug>::fmt::h4afc997ba7d9bee5 3: 0x7ff8197ad90b - std::panicking::default_hook::h551b08bc312fd345 4: 0x7ff8197ad537 - std::panicking::default_hook::h551b08bc312fd345 5: 0x7ff810d8d5a1 - <rustc_session[f5461e5ef6bca036]::options::WasiExecModel as rustc_session[f5461e5ef6bca036]::config::dep_tracking::DepTrackingHash>::hash 6: 0x7ff8197ae2ec - std::panicking::rust_panic_with_hook::h261126bd899705d1 7: 0x7ff813008f23 - <rustc_errors[f29bddad0e66874]::annotate_snippet_emitter_writer::AnnotateSnippetEmitterWriter>::ui_testing 8: 0x7ff813008cc9 - <rustc_errors[f29bddad0e66874]::annotate_snippet_emitter_writer::AnnotateSnippetEmitterWriter>::ui_testing 9: 0x7ff812ffe439 - <rustc_errors[f29bddad0e66874]::emitter::FileWithAnnotatedLines as core[ca4609741b1b5f3a]::fmt::Debug>::fmt 10: 0x7ff812ff27f9 - <rustc_feature[e558fdc666ba5bc6]::builtin_attrs::AttributeType as core[ca4609741b1b5f3a]::fmt::Debug>::fmt 11: 0x7ff80f5f268d - <rustc_errors[f29bddad0e66874]::HandlerInner as core[ca4609741b1b5f3a]::ops::drop::Drop>::drop 12: 0x7ff80e728b0b - <rustc_middle[a33c72cff0257ad9]::ty::SymbolName as core[ca4609741b1b5f3a]::fmt::Display>::fmt 13: 0x7ff80e72bb6f - <rustc_middle[a33c72cff0257ad9]::ty::SymbolName as core[ca4609741b1b5f3a]::fmt::Display>::fmt 14: 0x7ff80e71ac9d - <unknown> 15: 0x7ff80e7073a7 - <unknown> 16: 0x7ff80e73e7a7 - rustc_driver[5ebc3829ae83a8ca]::args::arg_expand_all 17: 0x7ff80e727ca9 - <unknown> 18: 0x7ff80e72d45d - <rustc_middle[a33c72cff0257ad9]::ty::SymbolName as core[ca4609741b1b5f3a]::fmt::Display>::fmt 19: 0x7ff8197bf3bc - std::sys::windows::thread::Thread::new::h38ada2124ce340db 20: 0x7ff8b2a154e0 - BaseThreadInitThunk 21: 0x7ff8b366485b - RtlUserThreadStart JonasWanke and HTGAzureX1212
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-let_elseIssues related to let-else statements (RFC 3137)Issues related to let-else statements (RFC 3137)I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.