@@ -184,18 +184,21 @@ pub(super) trait GoalKind<'tcx>:
184184 impl_def_id : DefId ,
185185 ) -> QueryResult < ' tcx > ;
186186
187- /// If the predicate contained an error, we want to avoid emitting unnecessary trait errors but
188- /// still want to emit errors for other trait goals. We have some special handling for this case.
187+ /// If the predicate contained an error, we want to avoid emitting unnecessary trait
188+ /// errors but still want to emit errors for other trait goals. We have some special
189+ /// handling for this case.
189190 ///
190- /// Trait goals always hold while projection goals never do. This is a bit arbitrary but prevents
191- /// incorrect normalization while hiding any trait errors.
191+ /// Trait goals always hold while projection goals never do. This is a bit arbitrary
192+ /// but prevents incorrect normalization while hiding any trait errors.
192193 fn consider_error_guaranteed_candidate (
193194 ecx : & mut EvalCtxt < ' _ , ' tcx > ,
194195 guar : ErrorGuaranteed ,
195196 ) -> QueryResult < ' tcx > ;
196197
197- /// A type implements an `auto trait` if its components do as well. These components
198- /// are given by built-in rules from [`instantiate_constituent_tys_for_auto_trait`].
198+ /// A type implements an `auto trait` if its components do as well.
199+ ///
200+ /// These components are given by built-in rules from
201+ /// [`structural_traits::instantiate_constituent_tys_for_auto_trait`].
199202 fn consider_auto_trait_candidate (
200203 ecx : & mut EvalCtxt < ' _ , ' tcx > ,
201204 goal : Goal < ' tcx , Self > ,
@@ -207,15 +210,19 @@ pub(super) trait GoalKind<'tcx>:
207210 goal : Goal < ' tcx , Self > ,
208211 ) -> QueryResult < ' tcx > ;
209212
210- /// A type is `Copy` or `Clone` if its components are `Sized`. These components
211- /// are given by built-in rules from [`instantiate_constituent_tys_for_sized_trait`].
213+ /// A type is `Copy` or `Clone` if its components are `Sized`.
214+ ///
215+ /// These components are given by built-in rules from
216+ /// [`structural_traits::instantiate_constituent_tys_for_sized_trait`].
212217 fn consider_builtin_sized_candidate (
213218 ecx : & mut EvalCtxt < ' _ , ' tcx > ,
214219 goal : Goal < ' tcx , Self > ,
215220 ) -> QueryResult < ' tcx > ;
216221
217- /// A type is `Copy` or `Clone` if its components are `Copy` or `Clone`. These
218- /// components are given by built-in rules from [`instantiate_constituent_tys_for_copy_clone_trait`].
222+ /// A type is `Copy` or `Clone` if its components are `Copy` or `Clone`.
223+ ///
224+ /// These components are given by built-in rules from
225+ /// [`structural_traits::instantiate_constituent_tys_for_copy_clone_trait`].
219226 fn consider_builtin_copy_clone_candidate (
220227 ecx : & mut EvalCtxt < ' _ , ' tcx > ,
221228 goal : Goal < ' tcx , Self > ,
0 commit comments