@@ -129,8 +129,12 @@ impl<'a> chalk_solve::RustIrDatabase<Interner> for ChalkContext<'a> {
129129 debug ! ( "impls_for_trait returned {} impls" , result. len( ) ) ;
130130 result
131131 }
132- fn impl_provided_for ( & self , auto_trait_id : TraitId , struct_id : AdtId ) -> bool {
133- debug ! ( "impl_provided_for {:?}, {:?}" , auto_trait_id, struct_id) ;
132+ fn impl_provided_for (
133+ & self ,
134+ auto_trait_id : TraitId ,
135+ application_ty : & chalk_ir:: ApplicationTy < Interner > ,
136+ ) -> bool {
137+ debug ! ( "impl_provided_for {:?}, {:?}" , auto_trait_id, application_ty) ;
134138 false // FIXME
135139 }
136140 fn associated_ty_value ( & self , id : AssociatedTyValueId ) -> Arc < AssociatedTyValue > {
@@ -422,6 +426,7 @@ fn well_known_trait_from_lang_attr(name: &str) -> Option<WellKnownTrait> {
422426 "fn_mut" => WellKnownTrait :: FnMut ,
423427 "fn" => WellKnownTrait :: Fn ,
424428 "unsize" => WellKnownTrait :: Unsize ,
429+ "coerce_unsized" => WellKnownTrait :: CoerceUnsized ,
425430 _ => return None ,
426431 } )
427432}
@@ -437,6 +442,7 @@ fn lang_attr_from_well_known_trait(attr: WellKnownTrait) -> &'static str {
437442 WellKnownTrait :: Fn => "fn" ,
438443 WellKnownTrait :: Unsize => "unsize" ,
439444 WellKnownTrait :: Unpin => "unpin" ,
445+ WellKnownTrait :: CoerceUnsized => "coerce_unsized" ,
440446 }
441447}
442448
0 commit comments