@@ -184,18 +184,21 @@ pub(super) trait GoalKind<'tcx>:
184
184
impl_def_id : DefId ,
185
185
) -> QueryResult < ' tcx > ;
186
186
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.
189
190
///
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.
192
193
fn consider_error_guaranteed_candidate (
193
194
ecx : & mut EvalCtxt < ' _ , ' tcx > ,
194
195
guar : ErrorGuaranteed ,
195
196
) -> QueryResult < ' tcx > ;
196
197
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`].
199
202
fn consider_auto_trait_candidate (
200
203
ecx : & mut EvalCtxt < ' _ , ' tcx > ,
201
204
goal : Goal < ' tcx , Self > ,
@@ -207,15 +210,19 @@ pub(super) trait GoalKind<'tcx>:
207
210
goal : Goal < ' tcx , Self > ,
208
211
) -> QueryResult < ' tcx > ;
209
212
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`].
212
217
fn consider_builtin_sized_candidate (
213
218
ecx : & mut EvalCtxt < ' _ , ' tcx > ,
214
219
goal : Goal < ' tcx , Self > ,
215
220
) -> QueryResult < ' tcx > ;
216
221
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`].
219
226
fn consider_builtin_copy_clone_candidate (
220
227
ecx : & mut EvalCtxt < ' _ , ' tcx > ,
221
228
goal : Goal < ' tcx , Self > ,
0 commit comments