@@ -374,11 +374,11 @@ pub type SelectionResult<'tcx, T> = Result<Option<T>, SelectionError<'tcx>>;
374
374
///
375
375
/// ### The type parameter `N`
376
376
///
377
- /// See explanation on `ImplSourceImplData `.
377
+ /// See explanation on `ImplSourceUserDefinedData `.
378
378
#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , HashStable , TypeFoldable ) ]
379
379
pub enum ImplSource < ' tcx , N > {
380
380
/// ImplSource identifying a particular impl.
381
- ImplSourceImpl ( ImplSourceImplData < ' tcx , N > ) ,
381
+ ImplSourceUserDefined ( ImplSourceUserDefinedData < ' tcx , N > ) ,
382
382
383
383
/// ImplSource for auto trait implementations.
384
384
/// This carries the information and nested obligations with regards
@@ -399,7 +399,7 @@ pub enum ImplSource<'tcx, N> {
399
399
ImplSourceBuiltin ( ImplSourceBuiltinData < N > ) ,
400
400
401
401
/// ImplSource automatically generated for a closure. The `DefId` is the ID
402
- /// of the closure expression. This is a `ImplSourceImpl ` in spirit, but the
402
+ /// of the closure expression. This is a `ImplSourceUserDefined ` in spirit, but the
403
403
/// impl is generated by the compiler and does not appear in the source.
404
404
ImplSourceClosure ( ImplSourceClosureData < ' tcx , N > ) ,
405
405
@@ -419,7 +419,7 @@ pub enum ImplSource<'tcx, N> {
419
419
impl < ' tcx , N > ImplSource < ' tcx , N > {
420
420
pub fn nested_obligations ( self ) -> Vec < N > {
421
421
match self {
422
- ImplSourceImpl ( i) => i. nested ,
422
+ ImplSourceUserDefined ( i) => i. nested ,
423
423
ImplSourceParam ( n) => n,
424
424
ImplSourceBuiltin ( i) => i. nested ,
425
425
ImplSourceAutoImpl ( d) => d. nested ,
@@ -434,7 +434,7 @@ impl<'tcx, N> ImplSource<'tcx, N> {
434
434
435
435
pub fn borrow_nested_obligations ( & self ) -> & [ N ] {
436
436
match & self {
437
- ImplSourceImpl ( i) => & i. nested [ ..] ,
437
+ ImplSourceUserDefined ( i) => & i. nested [ ..] ,
438
438
ImplSourceParam ( n) => & n[ ..] ,
439
439
ImplSourceBuiltin ( i) => & i. nested [ ..] ,
440
440
ImplSourceAutoImpl ( d) => & d. nested [ ..] ,
@@ -452,7 +452,7 @@ impl<'tcx, N> ImplSource<'tcx, N> {
452
452
F : FnMut ( N ) -> M ,
453
453
{
454
454
match self {
455
- ImplSourceImpl ( i) => ImplSourceImpl ( ImplSourceImplData {
455
+ ImplSourceUserDefined ( i) => ImplSourceUserDefined ( ImplSourceUserDefinedData {
456
456
impl_def_id : i. impl_def_id ,
457
457
substs : i. substs ,
458
458
nested : i. nested . into_iter ( ) . map ( f) . collect ( ) ,
@@ -507,7 +507,7 @@ impl<'tcx, N> ImplSource<'tcx, N> {
507
507
/// is `()`, because codegen only requires a shallow resolution of an
508
508
/// impl, and nested obligations are satisfied later.
509
509
#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , HashStable , TypeFoldable ) ]
510
- pub struct ImplSourceImplData < ' tcx , N > {
510
+ pub struct ImplSourceUserDefinedData < ' tcx , N > {
511
511
pub impl_def_id : DefId ,
512
512
pub substs : SubstsRef < ' tcx > ,
513
513
pub nested : Vec < N > ,
0 commit comments