Skip to content

Rustdoc ICE futures-util compiler/rustc_infer/src/infer/generalize.rs:28:40: unwrap_err on Ok(?11t) #118760

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

Closed
kpreid opened this issue Dec 8, 2023 · 4 comments
Labels
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. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@kpreid
Copy link
Contributor

kpreid commented Dec 8, 2023

Code

cargo +nightly doc -p [email protected]

Meta

rustc --version --verbose:

rustc 1.76.0-nightly (1fdfe1234 2023-12-06)
binary: rustc
commit-hash: 1fdfe1234795a289af1088aefa92ef80191cb611
commit-date: 2023-12-06
host: x86_64-apple-darwin
release: 1.76.0-nightly
LLVM version: 17.0.5

Error output

thread 'rustc' panicked at compiler/rustc_infer/src/infer/generalize.rs:28:40:
called `Result::unwrap_err()` on an `Ok` value: ?11t
Backtrace

stack backtrace:
   0:        0x10f2ee0cb - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2d0631316f3b5583
   1:        0x10f33a713 - core::fmt::write::h20c333a0d6e9fed4
   2:        0x10f2e44de - std::io::Write::write_fmt::ha8a591fe7c497304
   3:        0x10f2edea9 - std::sys_common::backtrace::print::h1f16fa78c263066c
   4:        0x10f2f1075 - std::panicking::default_hook::{{closure}}::h2e9c57d4d629dce8
   5:        0x10f2f0df4 - std::panicking::default_hook::h82619bbff7e5ef6e
   6:        0x11c8a188e - <alloc[2b175870aad3dc26]::boxed::Box<rustc_driver_impl[f96734878b84dfcd]::install_ice_hook::{closure#0}> as core[5d41cd2285a1e1cc]::ops::function::Fn<(&dyn for<'a, 'b> core[5d41cd2285a1e1cc]::ops::function::Fn<(&'a core[5d41cd2285a1e1cc]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[5d41cd2285a1e1cc]::marker::Sync + core[5d41cd2285a1e1cc]::marker::Send, &core[5d41cd2285a1e1cc]::panic::panic_info::PanicInfo)>>::call
   7:        0x10f2f1715 - std::panicking::rust_panic_with_hook::hf4389b5e0225aae1
   8:        0x10f2f14ae - std::panicking::begin_panic_handler::{{closure}}::h0bf848784eb62eb8
   9:        0x10f2ee5a9 - std::sys_common::backtrace::__rust_end_short_backtrace::h2c21727987e02008
  10:        0x10f2f1202 - _rust_begin_unwind
  11:        0x10f356b55 - core::panicking::panic_fmt::he0f1b97008b366aa
  12:        0x10f357175 - core::result::unwrap_failed::h21a3a8f24550a734
  13:        0x11d0535a7 - rustc_infer[592299c261c2d420]::infer::generalize::generalize::<rustc_infer[592299c261c2d420]::infer::generalize::CombineDelegate, rustc_middle[e576d51c83bb1f18]::ty::Ty, rustc_type_ir[f5370dad05bceabf]::ty_kind::TyVid>
  14:        0x11cfa6a4b - <rustc_infer[592299c261c2d420]::infer::combine::CombineFields>::instantiate
  15:        0x11cf84af4 - <rustc_infer[592299c261c2d420]::infer::equate::Equate as rustc_middle[e576d51c83bb1f18]::ty::relate::TypeRelation>::tys
  16:        0x11e50aa53 - <rustc_middle[e576d51c83bb1f18]::ty::generic_args::GenericArg as rustc_middle[e576d51c83bb1f18]::ty::relate::Relate>::relate::<rustc_infer[592299c261c2d420]::infer::equate::Equate>
  17:        0x11e3a3e97 - <core[5d41cd2285a1e1cc]::result::Result<rustc_middle[e576d51c83bb1f18]::ty::generic_args::GenericArg, rustc_middle[e576d51c83bb1f18]::ty::error::TypeError> as rustc_type_ir[f5370dad05bceabf]::interner::CollectAndApply<rustc_middle[e576d51c83bb1f18]::ty::generic_args::GenericArg, &rustc_middle[e576d51c83bb1f18]::ty::list::List<rustc_middle[e576d51c83bb1f18]::ty::generic_args::GenericArg>>>::collect_and_apply::<core[5d41cd2285a1e1cc]::iter::adapters::map::Map<core[5d41cd2285a1e1cc]::iter::adapters::zip::Zip<core[5d41cd2285a1e1cc]::iter::adapters::copied::Copied<core[5d41cd2285a1e1cc]::slice::iter::Iter<rustc_middle[e576d51c83bb1f18]::ty::generic_args::GenericArg>>, core[5d41cd2285a1e1cc]::iter::adapters::copied::Copied<core[5d41cd2285a1e1cc]::slice::iter::Iter<rustc_middle[e576d51c83bb1f18]::ty::generic_args::GenericArg>>>, rustc_middle[e576d51c83bb1f18]::ty::relate::relate_args_invariantly<rustc_infer[592299c261c2d420]::infer::sub::Sub>::{closure#0}>, <rustc_middle[e576d51c83bb1f18]::ty::context::TyCtxt>::mk_args_from_iter<core[5d41cd2285a1e1cc]::iter::adapters::map::Map<core[5d41cd2285a1e1cc]::iter::adapters::zip::Zip<core[5d41cd2285a1e1cc]::iter::adapters::copied::Copied<core[5d41cd2285a1e1cc]::slice::iter::Iter<rustc_middle[e576d51c83bb1f18]::ty::generic_args::GenericArg>>, core[5d41cd2285a1e1cc]::iter::adapters::copied::Copied<core[5d41cd2285a1e1cc]::slice::iter::Iter<rustc_middle[e576d51c83bb1f18]::ty::generic_args::GenericArg>>>, rustc_middle[e576d51c83bb1f18]::ty::relate::relate_args_invariantly<rustc_infer[592299c261c2d420]::infer::sub::Sub>::{closure#0}>, core[5d41cd2285a1e1cc]::result::Result<rustc_middle[e576d51c83bb1f18]::ty::generic_args::GenericArg, rustc_middle[e576d51c83bb1f18]::ty::error::TypeError>>::{closure#0}>
  18:        0x11e53a7b6 - <rustc_infer[592299c261c2d420]::infer::combine::CombineFields>::higher_ranked_sub::<rustc_middle[e576d51c83bb1f18]::ty::sty::TraitRef>
  19:        0x11e4818f9 - <rustc_infer[592299c261c2d420]::infer::InferCtxt>::commit_if_ok::<rustc_infer[592299c261c2d420]::infer::InferOk<()>, rustc_middle[e576d51c83bb1f18]::ty::error::TypeError, <rustc_infer[592299c261c2d420]::infer::at::Trace>::sub<rustc_middle[e576d51c83bb1f18]::ty::sty::Binder<rustc_middle[e576d51c83bb1f18]::ty::sty::TraitRef>>::{closure#0}>
  20:        0x11e33941e - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::match_where_clause_trait_ref
  21:        0x11e48cdb7 - <rustc_infer[592299c261c2d420]::infer::InferCtxt>::probe::<core[5d41cd2285a1e1cc]::result::Result<rustc_middle[e576d51c83bb1f18]::traits::select::EvaluationResult, rustc_middle[e576d51c83bb1f18]::traits::select::OverflowError>, <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::evaluation_probe<<rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::where_clause_may_apply::{closure#0}>::{closure#0}>
  22:        0x11e33aa19 - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::assemble_candidates_from_caller_bounds
  23:        0x11e339f9a - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::assemble_candidates
  24:        0x11e334e26 - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::in_task::<<rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::candidate_from_obligation::{closure#0}::{closure#0}, core[5d41cd2285a1e1cc]::result::Result<core[5d41cd2285a1e1cc]::option::Option<rustc_middle[e576d51c83bb1f18]::traits::select::SelectionCandidate>, rustc_middle[e576d51c83bb1f18]::traits::SelectionError>>::{closure#0}
  25:        0x11e3439bd - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::candidate_from_obligation
  26:        0x11e343257 - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::poly_select
  27:        0x11e334c52 - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::select
  28:        0x11e483686 - <rustc_infer[592299c261c2d420]::infer::InferCtxt>::commit_if_ok::<(), (), rustc_trait_selection[1258e9116b31c3d0]::traits::project::assemble_candidates_from_impls::{closure#0}>
  29:        0x11e37ab4e - rustc_trait_selection[1258e9116b31c3d0]::traits::project::project
  30:        0x11e378397 - rustc_trait_selection[1258e9116b31c3d0]::traits::project::opt_normalize_projection_type
  31:        0x11e3754e7 - rustc_trait_selection[1258e9116b31c3d0]::traits::project::project_and_unify_type
  32:        0x11e4831e9 - <rustc_infer[592299c261c2d420]::infer::InferCtxt>::commit_if_ok::<rustc_trait_selection[1258e9116b31c3d0]::traits::project::ProjectAndUnifyResult, rustc_infer[592299c261c2d420]::traits::project::MismatchedProjectionTypes, rustc_trait_selection[1258e9116b31c3d0]::traits::project::poly_project_and_unify_type::{closure#0}>
  33:        0x11e37541f - rustc_trait_selection[1258e9116b31c3d0]::traits::project::poly_project_and_unify_type
  34:        0x11e3460d2 - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::evaluate_predicate_recursively
  35:        0x11e3454e2 - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::evaluate_predicates_recursively::<alloc[2b175870aad3dc26]::vec::Vec<rustc_infer[592299c261c2d420]::traits::Obligation<rustc_middle[e576d51c83bb1f18]::ty::Predicate>>>
  36:        0x11e3461f3 - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::evaluate_predicate_recursively
  37:        0x11e3454e2 - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::evaluate_predicates_recursively::<alloc[2b175870aad3dc26]::vec::Vec<rustc_infer[592299c261c2d420]::traits::Obligation<rustc_middle[e576d51c83bb1f18]::ty::Predicate>>>
  38:        0x11e48cde9 - <rustc_infer[592299c261c2d420]::infer::InferCtxt>::probe::<core[5d41cd2285a1e1cc]::result::Result<rustc_middle[e576d51c83bb1f18]::traits::select::EvaluationResult, rustc_middle[e576d51c83bb1f18]::traits::select::OverflowError>, <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::evaluation_probe<<rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::where_clause_may_apply::{closure#0}>::{closure#0}>
  39:        0x11e33aa19 - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::assemble_candidates_from_caller_bounds
  40:        0x11e339f9a - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::assemble_candidates
  41:        0x11e334e26 - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::in_task::<<rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::candidate_from_obligation::{closure#0}::{closure#0}, core[5d41cd2285a1e1cc]::result::Result<core[5d41cd2285a1e1cc]::option::Option<rustc_middle[e576d51c83bb1f18]::traits::select::SelectionCandidate>, rustc_middle[e576d51c83bb1f18]::traits::SelectionError>>::{closure#0}
  42:        0x11e3439bd - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::candidate_from_obligation
  43:        0x11e343257 - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::poly_select
  44:        0x11e334c52 - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::select
  45:        0x11e483686 - <rustc_infer[592299c261c2d420]::infer::InferCtxt>::commit_if_ok::<(), (), rustc_trait_selection[1258e9116b31c3d0]::traits::project::assemble_candidates_from_impls::{closure#0}>
  46:        0x11e37ab4e - rustc_trait_selection[1258e9116b31c3d0]::traits::project::project
  47:        0x11e378397 - rustc_trait_selection[1258e9116b31c3d0]::traits::project::opt_normalize_projection_type
  48:        0x11e370186 - rustc_trait_selection[1258e9116b31c3d0]::traits::project::normalize_projection_type
  49:        0x11e36ec48 - <rustc_trait_selection[1258e9116b31c3d0]::traits::project::AssocTypeNormalizer as rustc_type_ir[f5370dad05bceabf]::fold::TypeFolder<rustc_middle[e576d51c83bb1f18]::ty::context::TyCtxt>>::fold_ty
  50:        0x11e3959b0 - rustc_middle[e576d51c83bb1f18]::ty::util::fold_list::<rustc_trait_selection[1258e9116b31c3d0]::traits::project::AssocTypeNormalizer, rustc_middle[e576d51c83bb1f18]::ty::generic_args::GenericArg, <&rustc_middle[e576d51c83bb1f18]::ty::list::List<rustc_middle[e576d51c83bb1f18]::ty::generic_args::GenericArg> as rustc_type_ir[f5370dad05bceabf]::fold::TypeFoldable<rustc_middle[e576d51c83bb1f18]::ty::context::TyCtxt>>::try_fold_with<rustc_trait_selection[1258e9116b31c3d0]::traits::project::AssocTypeNormalizer>::{closure#0}>
  51:        0x11e35d601 - <rustc_type_ir[f5370dad05bceabf]::predicate_kind::PredicateKind<rustc_middle[e576d51c83bb1f18]::ty::context::TyCtxt> as rustc_type_ir[f5370dad05bceabf]::fold::TypeFoldable<rustc_middle[e576d51c83bb1f18]::ty::context::TyCtxt>>::try_fold_with::<rustc_trait_selection[1258e9116b31c3d0]::traits::project::AssocTypeNormalizer>
  52:        0x11e36dbe3 - <rustc_trait_selection[1258e9116b31c3d0]::traits::project::AssocTypeNormalizer>::fold::<rustc_middle[e576d51c83bb1f18]::ty::Clause>
  53:        0x11e376769 - rustc_trait_selection[1258e9116b31c3d0]::traits::project::normalize_with_depth_to::<rustc_middle[e576d51c83bb1f18]::ty::Clause>
  54:        0x11e34a65a - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::impl_or_trait_obligations
  55:        0x11e33e3c8 - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::confirm_candidate
  56:        0x11e48c950 - <rustc_infer[592299c261c2d420]::infer::InferCtxt>::probe::<core[5d41cd2285a1e1cc]::result::Result<rustc_middle[e576d51c83bb1f18]::traits::select::EvaluationResult, rustc_middle[e576d51c83bb1f18]::traits::select::OverflowError>, <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::evaluation_probe<<rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::evaluate_candidate::{closure#0}::{closure#0}>::{closure#0}>
  57:        0x11e4eea00 - <core[5d41cd2285a1e1cc]::iter::adapters::map::Map<core[5d41cd2285a1e1cc]::iter::adapters::map::Map<alloc[2b175870aad3dc26]::vec::into_iter::IntoIter<rustc_middle[e576d51c83bb1f18]::traits::select::SelectionCandidate>, <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::candidate_from_obligation_no_cache::{closure#1}>, <core[5d41cd2285a1e1cc]::result::Result<core[5d41cd2285a1e1cc]::option::Option<rustc_trait_selection[1258e9116b31c3d0]::traits::select::EvaluatedCandidate>, rustc_middle[e576d51c83bb1f18]::traits::SelectionError>>::transpose> as core[5d41cd2285a1e1cc]::iter::traits::iterator::Iterator>::try_fold::<(), <core[5d41cd2285a1e1cc]::iter::adapters::flatten::FlattenCompat<_, _>>::iter_try_fold::flatten<core[5d41cd2285a1e1cc]::option::Option<core[5d41cd2285a1e1cc]::result::Result<rustc_trait_selection[1258e9116b31c3d0]::traits::select::EvaluatedCandidate, rustc_middle[e576d51c83bb1f18]::traits::SelectionError>>, (), core[5d41cd2285a1e1cc]::ops::control_flow::ControlFlow<core[5d41cd2285a1e1cc]::ops::control_flow::ControlFlow<rustc_trait_selection[1258e9116b31c3d0]::traits::select::EvaluatedCandidate>>, <core[5d41cd2285a1e1cc]::iter::adapters::flatten::FlattenCompat<_, _> as core[5d41cd2285a1e1cc]::iter::traits::iterator::Iterator>::try_fold::flatten<core[5d41cd2285a1e1cc]::option::IntoIter<core[5d41cd2285a1e1cc]::result::Result<rustc_trait_selection[1258e9116b31c3d0]::traits::select::EvaluatedCandidate, rustc_middle[e576d51c83bb1f18]::traits::SelectionError>>, (), core[5d41cd2285a1e1cc]::ops::control_flow::ControlFlow<core[5d41cd2285a1e1cc]::ops::control_flow::ControlFlow<rustc_trait_selection[1258e9116b31c3d0]::traits::select::EvaluatedCandidate>>, <core[5d41cd2285a1e1cc]::iter::adapters::GenericShunt<core[5d41cd2285a1e1cc]::iter::adapters::flatten::FlatMap<core[5d41cd2285a1e1cc]::iter::adapters::map::Map<alloc[2b175870aad3dc26]::vec::into_iter::IntoIter<rustc_middle[e576d51c83bb1f18]::traits::select::SelectionCandidate>, <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::candidate_from_obligation_no_cache::{closure#1}>, core[5d41cd2285a1e1cc]::option::Option<core[5d41cd2285a1e1cc]::result::Result<rustc_trait_selection[1258e9116b31c3d0]::traits::select::EvaluatedCandidate, rustc_middle[e576d51c83bb1f18]::traits::SelectionError>>, <core[5d41cd2285a1e1cc]::result::Result<core[5d41cd2285a1e1cc]::option::Option<rustc_trait_selection[1258e9116b31c3d0]::traits::select::EvaluatedCandidate>, rustc_middle[e576d51c83bb1f18]::traits::SelectionError>>::transpose>, core[5d41cd2285a1e1cc]::result::Result<core[5d41cd2285a1e1cc]::convert::Infallible, rustc_middle[e576d51c83bb1f18]::traits::SelectionError>> as core[5d41cd2285a1e1cc]::iter::traits::iterator::Iterator>::try_fold<(), core[5d41cd2285a1e1cc]::iter::traits::iterator::Iterator::try_for_each::call<rustc_trait_selection[1258e9116b31c3d0]::traits::select::EvaluatedCandidate, core[5d41cd2285a1e1cc]::ops::control_flow::ControlFlow<rustc_trait_selection[1258e9116b31c3d0]::traits::select::EvaluatedCandidate>, core[5d41cd2285a1e1cc]::ops::control_flow::ControlFlow<rustc_trait_selection[1258e9116b31c3d0]::traits::select::EvaluatedCandidate>::Break>::{closure#0}, core[5d41cd2285a1e1cc]::ops::control_flow::ControlFlow<rustc_trait_selection[1258e9116b31c3d0]::traits::select::EvaluatedCandidate>>::{closure#0}>::{closure#0}>::{closure#0}, core[5d41cd2285a1e1cc]::ops::control_flow::ControlFlow<core[5d41cd2285a1e1cc]::ops::control_flow::ControlFlow<rustc_trait_selection[1258e9116b31c3d0]::traits::select::EvaluatedCandidate>>>
  58:        0x11e3a7363 - <core[5d41cd2285a1e1cc]::iter::adapters::GenericShunt<core[5d41cd2285a1e1cc]::iter::adapters::flatten::FlatMap<core[5d41cd2285a1e1cc]::iter::adapters::map::Map<alloc[2b175870aad3dc26]::vec::into_iter::IntoIter<rustc_middle[e576d51c83bb1f18]::traits::select::SelectionCandidate>, <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::candidate_from_obligation_no_cache::{closure#1}>, core[5d41cd2285a1e1cc]::option::Option<core[5d41cd2285a1e1cc]::result::Result<rustc_trait_selection[1258e9116b31c3d0]::traits::select::EvaluatedCandidate, rustc_middle[e576d51c83bb1f18]::traits::SelectionError>>, <core[5d41cd2285a1e1cc]::result::Result<core[5d41cd2285a1e1cc]::option::Option<rustc_trait_selection[1258e9116b31c3d0]::traits::select::EvaluatedCandidate>, rustc_middle[e576d51c83bb1f18]::traits::SelectionError>>::transpose>, core[5d41cd2285a1e1cc]::result::Result<core[5d41cd2285a1e1cc]::convert::Infallible, rustc_middle[e576d51c83bb1f18]::traits::SelectionError>> as core[5d41cd2285a1e1cc]::iter::traits::iterator::Iterator>::next
  59:        0x11e3c57ea - <alloc[2b175870aad3dc26]::vec::Vec<rustc_trait_selection[1258e9116b31c3d0]::traits::select::EvaluatedCandidate> as alloc[2b175870aad3dc26]::vec::spec_from_iter::SpecFromIter<rustc_trait_selection[1258e9116b31c3d0]::traits::select::EvaluatedCandidate, core[5d41cd2285a1e1cc]::iter::adapters::GenericShunt<core[5d41cd2285a1e1cc]::iter::adapters::flatten::FlatMap<core[5d41cd2285a1e1cc]::iter::adapters::map::Map<alloc[2b175870aad3dc26]::vec::into_iter::IntoIter<rustc_middle[e576d51c83bb1f18]::traits::select::SelectionCandidate>, <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::candidate_from_obligation_no_cache::{closure#1}>, core[5d41cd2285a1e1cc]::option::Option<core[5d41cd2285a1e1cc]::result::Result<rustc_trait_selection[1258e9116b31c3d0]::traits::select::EvaluatedCandidate, rustc_middle[e576d51c83bb1f18]::traits::SelectionError>>, <core[5d41cd2285a1e1cc]::result::Result<core[5d41cd2285a1e1cc]::option::Option<rustc_trait_selection[1258e9116b31c3d0]::traits::select::EvaluatedCandidate>, rustc_middle[e576d51c83bb1f18]::traits::SelectionError>>::transpose>, core[5d41cd2285a1e1cc]::result::Result<core[5d41cd2285a1e1cc]::convert::Infallible, rustc_middle[e576d51c83bb1f18]::traits::SelectionError>>>>::from_iter
  60:        0x11e335385 - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::in_task::<<rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::candidate_from_obligation::{closure#0}::{closure#0}, core[5d41cd2285a1e1cc]::result::Result<core[5d41cd2285a1e1cc]::option::Option<rustc_middle[e576d51c83bb1f18]::traits::select::SelectionCandidate>, rustc_middle[e576d51c83bb1f18]::traits::SelectionError>>::{closure#0}
  61:        0x11e3439bd - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::candidate_from_obligation
  62:        0x11e348fb7 - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::evaluate_trait_predicate_recursively::{closure#0}::{closure#1}
  63:        0x11e347553 - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::evaluate_trait_predicate_recursively
  64:        0x11e345af3 - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::evaluate_predicate_recursively
  65:        0x11e345712 - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::evaluate_predicates_recursively::<alloc[2b175870aad3dc26]::vec::into_iter::IntoIter<rustc_infer[592299c261c2d420]::traits::Obligation<rustc_middle[e576d51c83bb1f18]::ty::Predicate>>>
  66:        0x11e48c9d9 - <rustc_infer[592299c261c2d420]::infer::InferCtxt>::probe::<core[5d41cd2285a1e1cc]::result::Result<rustc_middle[e576d51c83bb1f18]::traits::select::EvaluationResult, rustc_middle[e576d51c83bb1f18]::traits::select::OverflowError>, <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::evaluation_probe<<rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::evaluate_candidate::{closure#0}::{closure#0}>::{closure#0}>
  67:        0x11e349046 - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::evaluate_trait_predicate_recursively::{closure#0}::{closure#1}
  68:        0x11e347553 - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::evaluate_trait_predicate_recursively
  69:        0x11e345af3 - <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::evaluate_predicate_recursively
  70:        0x11e48d2a4 - <rustc_infer[592299c261c2d420]::infer::InferCtxt>::probe::<core[5d41cd2285a1e1cc]::result::Result<rustc_middle[e576d51c83bb1f18]::traits::select::EvaluationResult, rustc_middle[e576d51c83bb1f18]::traits::select::OverflowError>, <rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::evaluation_probe<<rustc_trait_selection[1258e9116b31c3d0]::traits::select::SelectionContext>::evaluate_root_obligation::{closure#0}>::{closure#0}>
  71:        0x11e57871d - rustc_traits[bd76edf8ea302ccc]::evaluate_obligation::evaluate_obligation
  72:        0x11dd7a617 - rustc_query_impl[f00bb7fedb42940d]::plumbing::__rust_begin_short_backtrace::<rustc_query_impl[f00bb7fedb42940d]::query_impl::evaluate_obligation::dynamic_query::{closure#2}::{closure#0}, rustc_middle[e576d51c83bb1f18]::query::erase::Erased<[u8; 2usize]>>
  73:        0x11df28f9f - <rustc_query_impl[f00bb7fedb42940d]::query_impl::evaluate_obligation::dynamic_query::{closure#2} as core[5d41cd2285a1e1cc]::ops::function::FnOnce<(rustc_middle[e576d51c83bb1f18]::ty::context::TyCtxt, rustc_type_ir[f5370dad05bceabf]::canonical::Canonical<rustc_middle[e576d51c83bb1f18]::ty::context::TyCtxt, rustc_middle[e576d51c83bb1f18]::ty::ParamEnvAnd<rustc_middle[e576d51c83bb1f18]::ty::Predicate>>)>>::call_once
  74:        0x11dc93ff0 - rustc_query_system[f11a898d5ea9e60a]::query::plumbing::try_execute_query::<rustc_query_impl[f00bb7fedb42940d]::DynamicConfig<rustc_query_system[f11a898d5ea9e60a]::query::caches::DefaultCache<rustc_type_ir[f5370dad05bceabf]::canonical::Canonical<rustc_middle[e576d51c83bb1f18]::ty::context::TyCtxt, rustc_middle[e576d51c83bb1f18]::ty::ParamEnvAnd<rustc_middle[e576d51c83bb1f18]::ty::Predicate>>, rustc_middle[e576d51c83bb1f18]::query::erase::Erased<[u8; 2usize]>>, false, false, false>, rustc_query_impl[f00bb7fedb42940d]::plumbing::QueryCtxt, false>
  75:        0x11df1852b - rustc_query_impl[f00bb7fedb42940d]::query_impl::evaluate_obligation::get_query_non_incr::__rust_end_short_backtrace
  76:        0x11e4ac7ab - <rustc_infer[592299c261c2d420]::infer::InferCtxt as rustc_trait_selection[1258e9116b31c3d0]::traits::query::evaluate_obligation::InferCtxtExt>::evaluate_obligation
  77:        0x10dc7b407 - <rustdoc[4257f5d8f2b1dae7]::clean::blanket_impl::BlanketImplFinder>::get_blanket_impls
  78:        0x10dcc9c95 - rustdoc[4257f5d8f2b1dae7]::clean::utils::get_auto_trait_and_blanket_impls
  79:        0x10dbba4fe - <rustdoc[4257f5d8f2b1dae7]::passes::collect_trait_impls::SyntheticImplCollector as rustdoc[4257f5d8f2b1dae7]::visit::DocVisitor>::visit_item
  80:        0x10dbba5fc - <rustdoc[4257f5d8f2b1dae7]::passes::collect_trait_impls::SyntheticImplCollector as rustdoc[4257f5d8f2b1dae7]::visit::DocVisitor>::visit_item
  81:        0x10dbba5fc - <rustdoc[4257f5d8f2b1dae7]::passes::collect_trait_impls::SyntheticImplCollector as rustdoc[4257f5d8f2b1dae7]::visit::DocVisitor>::visit_item
  82:        0x10dbba5fc - <rustdoc[4257f5d8f2b1dae7]::passes::collect_trait_impls::SyntheticImplCollector as rustdoc[4257f5d8f2b1dae7]::visit::DocVisitor>::visit_item
  83:        0x10dbb77b1 - rustdoc[4257f5d8f2b1dae7]::passes::collect_trait_impls::collect_trait_impls
  84:        0x10db78887 - <rustc_session[474e4fd152043607]::session::Session>::time::<(rustdoc[4257f5d8f2b1dae7]::clean::types::Crate, rustdoc[4257f5d8f2b1dae7]::config::RenderOptions, rustdoc[4257f5d8f2b1dae7]::formats::cache::Cache), rustdoc[4257f5d8f2b1dae7]::main_args::{closure#1}::{closure#0}::{closure#0}::{closure#0}>
  85:        0x10dc55596 - <rustc_middle[e576d51c83bb1f18]::ty::context::GlobalCtxt>::enter::<rustdoc[4257f5d8f2b1dae7]::main_args::{closure#1}::{closure#0}::{closure#0}, core[5d41cd2285a1e1cc]::result::Result<(), rustc_span[421aa80b499152af]::ErrorGuaranteed>>
  86:        0x10db4bb9b - <rustc_interface[e66ff0e65a57fecb]::interface::Compiler>::enter::<rustdoc[4257f5d8f2b1dae7]::main_args::{closure#1}::{closure#0}, core[5d41cd2285a1e1cc]::result::Result<(), rustc_span[421aa80b499152af]::ErrorGuaranteed>>
  87:        0x10db97b74 - rustc_interface[e66ff0e65a57fecb]::interface::run_compiler::<core[5d41cd2285a1e1cc]::result::Result<(), rustc_span[421aa80b499152af]::ErrorGuaranteed>, rustdoc[4257f5d8f2b1dae7]::main_args::{closure#1}>::{closure#0}
  88:        0x10db92a99 - std[c8f2730e1e4a363e]::sys_common::backtrace::__rust_begin_short_backtrace::<rustc_interface[e66ff0e65a57fecb]::util::run_in_thread_with_globals<rustc_interface[e66ff0e65a57fecb]::util::run_in_thread_pool_with_globals<rustc_interface[e66ff0e65a57fecb]::interface::run_compiler<core[5d41cd2285a1e1cc]::result::Result<(), rustc_span[421aa80b499152af]::ErrorGuaranteed>, rustdoc[4257f5d8f2b1dae7]::main_args::{closure#1}>::{closure#0}, core[5d41cd2285a1e1cc]::result::Result<(), rustc_span[421aa80b499152af]::ErrorGuaranteed>>::{closure#0}, core[5d41cd2285a1e1cc]::result::Result<(), rustc_span[421aa80b499152af]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5d41cd2285a1e1cc]::result::Result<(), rustc_span[421aa80b499152af]::ErrorGuaranteed>>
  89:        0x10daa9e2e - <<std[c8f2730e1e4a363e]::thread::Builder>::spawn_unchecked_<rustc_interface[e66ff0e65a57fecb]::util::run_in_thread_with_globals<rustc_interface[e66ff0e65a57fecb]::util::run_in_thread_pool_with_globals<rustc_interface[e66ff0e65a57fecb]::interface::run_compiler<core[5d41cd2285a1e1cc]::result::Result<(), rustc_span[421aa80b499152af]::ErrorGuaranteed>, rustdoc[4257f5d8f2b1dae7]::main_args::{closure#1}>::{closure#0}, core[5d41cd2285a1e1cc]::result::Result<(), rustc_span[421aa80b499152af]::ErrorGuaranteed>>::{closure#0}, core[5d41cd2285a1e1cc]::result::Result<(), rustc_span[421aa80b499152af]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[5d41cd2285a1e1cc]::result::Result<(), rustc_span[421aa80b499152af]::ErrorGuaranteed>>::{closure#1} as core[5d41cd2285a1e1cc]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
  90:        0x10f2fa9f9 - std::sys::unix::thread::Thread::new::thread_start::hf21514fbfb46a5c0
  91:     0x7ff8017744e1 - __pthread_start

error: 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-rustdoc&template=ice.md

note: please attach the file at `/Users/kpreid/.cargo/registry/src/index.crates.io-6f17d22bba15001f/futures-util-0.3.28/rustc-ice-2023-12-08T19_50_41-15023.txt` to your bug report

note: compiler flags: --crate-type lib

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [evaluate_obligation] evaluating trait selection obligation `stream::stream::FlatMapUnordered<^1_1, ^1_2, ^1_0>: futures_core::stream::Stream`
end of query stack

@rustbot label +regression-from-stable-to-nightly +A-rustdoc

@kpreid kpreid 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 8, 2023
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Dec 8, 2023
@kpreid kpreid changed the title Rustdoc ICE futures-util compiler/rustc_infer/src/infer/generalize.rs:28:40: unwrap_err on Ok(?11t)` Rustdoc ICE futures-util compiler/rustc_infer/src/infer/generalize.rs:28:40: unwrap_err on Ok(?11t) Dec 8, 2023
@kpreid
Copy link
Contributor Author

kpreid commented Dec 8, 2023

@rustbot label +T-rustdoc

@rustbot rustbot added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Dec 8, 2023
@compiler-errors
Copy link
Member

should be fixed by #118710

@saethlin saethlin removed the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Dec 9, 2023
@rhysd
Copy link
Contributor

rhysd commented Dec 11, 2023

wry development encountered this issue and confirmed it was fixed with the latest nightly compiler:

  • Occurred: 503e12932 2023-12-07 (job run)
  • Fixed: d86d65bbc 2023-12-10 (job run)

@fmease
Copy link
Member

fmease commented Jan 16, 2024

Closing as completed then. kpreid, please let me know if this still an issue and I will reopen.

@fmease fmease closed this as completed Jan 16, 2024
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. 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. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

6 participants