-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ICE: called Option::unwrap()
on a None
value in collector.rs:934:13
#105488
Labels
C-bug
Category: This is a bug.
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
EqualMa
added
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Dec 9, 2022
@rustbot claim |
@compiler-errors error: internal compiler error: compiler/rustc_middle/src/ty/instance.rs:411:25: failed to resolve instance for <fn() -> impl MyFnOnce {my_fn_2} as MyFnOnce>::call_my_fn_once: Ok(
None,
)
thread 'rustc' panicked at /Users/yukang/rust/compiler/rustc_errors/src/lib.rs:1635:9:
Box<dyn Any>
stack backtrace:
0: std::panicking::begin_panic::<rustc_errors::ExplicitBug>
at ./library/std/src/panicking.rs:649:12
1: std::panic::panic_any::<rustc_errors::ExplicitBug>
at ./library/std/src/panic.rs:63:5
2: <rustc_errors::HandlerInner>::bug::<alloc::string::String>
at ./compiler/rustc_errors/src/lib.rs:1635:9
3: <rustc_errors::Handler>::bug::<alloc::string::String>
at ./compiler/rustc_errors/src/lib.rs:1048:9
4: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>::{closure#0}
at ./compiler/rustc_middle/src/util/bug.rs:35:34
5: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}
at ./compiler/rustc_middle/src/ty/context/tls.rs:154:36
6: rustc_middle::ty::context::tls::with_context_opt::<rustc_middle::ty::context::tls::with_opt<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>::{closure#0}, !>
at ./compiler/rustc_middle/src/ty/context/tls.rs:100:18
7: rustc_middle::ty::context::tls::with_opt::<rustc_middle::util::bug::opt_span_bug_fmt<rustc_span::span_encoding::Span>::{closure#0}, !>
at ./compiler/rustc_middle/src/ty/context/tls.rs:154:5
8: rustc_middle::util::bug::opt_span_bug_fmt::<rustc_span::span_encoding::Span>
at ./compiler/rustc_middle/src/util/bug.rs:31:5
9: rustc_middle::util::bug::bug_fmt
at ./compiler/rustc_middle/src/util/bug.rs:15:5
10: <rustc_middle::ty::instance::Instance>::expect_resolve
at ./compiler/rustc_middle/src/ty/instance.rs:411:25
11: rustc_monomorphize::collector::visit_fn_use
at ./compiler/rustc_monomorphize/src/collector.rs:880:13
12: <rustc_monomorphize::collector::MirUsedCollector as rustc_middle::mir::visit::Visitor>::visit_terminator
at ./compiler/rustc_monomorphize/src/collector.rs:744:17 since your PR #105569 landed. do you any idea on how to resolve it? |
Merged
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Apr 7, 2024
add some more tests Fixes rust-lang#115806 Fixes rust-lang#116710 Fixes rust-lang#123145 Fixes rust-lang#105488 Fixes rust-lang#122488 Fixes rust-lang#123078
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Apr 7, 2024
Rollup merge of rust-lang#123579 - matthiaskrgr:I_Love_Tests, r=jieyouxu add some more tests Fixes rust-lang#115806 Fixes rust-lang#116710 Fixes rust-lang#123145 Fixes rust-lang#105488 Fixes rust-lang#122488 Fixes rust-lang#123078
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: