File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -980,12 +980,9 @@ pub enum CodegenObligationError {
980980/// overflow bug, since I believe this is the only case
981981/// where ambiguity can result.
982982Ambiguity ,
983- /// This can trigger when we probe for the source of a `'static` lifetime requirement
984- /// on a trait object: `impl Foo for dyn Trait {}` has an implicit `'static` bound.
985- /// This can also trigger when we have a global bound that is not actually satisfied,
986- /// but was included during typeck due to the trivial_bounds feature.
983+ /// This can trigger when we have a global bound that is not actually satisfied
984+ /// due to trivial bounds.
987985Unimplemented ,
988- FulfillmentError ,
989986/// The selected impl has unconstrained generic parameters. This will emit an error
990987/// during impl WF checking.
991988UnconstrainedParam ( ErrorGuaranteed ) ,
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ pub(crate) fn codegen_select_candidate<'tcx>(
7070 infcx. err_ctxt ( ) . report_overflow_obligation_cycle ( & cycle) ;
7171}
7272}
73- return Err ( CodegenObligationError :: FulfillmentError ) ;
73+ return Err ( CodegenObligationError :: Unimplemented ) ;
7474}
7575
7676let impl_source = infcx. resolve_vars_if_possible ( impl_source) ;
Original file line number Diff line number Diff line change @@ -107,11 +107,9 @@ fn resolve_associated_item<'tcx>(
107107let input = typing_env. as_query_input ( trait_ref) ;
108108let vtbl = match tcx. codegen_select_candidate ( input) {
109109Ok ( vtbl) => vtbl,
110- Err (
111- CodegenObligationError :: Ambiguity
112- | CodegenObligationError :: Unimplemented
113- | CodegenObligationError :: FulfillmentError ,
114- ) => return Ok ( None ) ,
110+ Err ( CodegenObligationError :: Ambiguity | CodegenObligationError :: Unimplemented ) => {
111+ return Ok ( None ) ;
112+ }
115113Err ( CodegenObligationError :: UnconstrainedParam ( guar) ) => return Err ( guar) ,
116114} ;
117115
You can’t perform that action at this time.
0 commit comments