@@ -374,11 +374,11 @@ pub type SelectionResult<'tcx, T> = Result<Option<T>, SelectionError<'tcx>>;
374374///
375375/// ### The type parameter `N`
376376///
377- /// See explanation on `ImplSourceImplData `.
377+ /// See explanation on `ImplSourceUserDefinedData `.
378378#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , HashStable , TypeFoldable ) ]
379379pub enum ImplSource < ' tcx , N > {
380380 /// ImplSource identifying a particular impl.
381- ImplSourceImpl ( ImplSourceImplData < ' tcx , N > ) ,
381+ ImplSourceUserDefined ( ImplSourceUserDefinedData < ' tcx , N > ) ,
382382
383383 /// ImplSource for auto trait implementations.
384384 /// This carries the information and nested obligations with regards
@@ -399,7 +399,7 @@ pub enum ImplSource<'tcx, N> {
399399 ImplSourceBuiltin ( ImplSourceBuiltinData < N > ) ,
400400
401401 /// 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
403403 /// impl is generated by the compiler and does not appear in the source.
404404 ImplSourceClosure ( ImplSourceClosureData < ' tcx , N > ) ,
405405
@@ -419,7 +419,7 @@ pub enum ImplSource<'tcx, N> {
419419impl < ' tcx , N > ImplSource < ' tcx , N > {
420420 pub fn nested_obligations ( self ) -> Vec < N > {
421421 match self {
422- ImplSourceImpl ( i) => i. nested ,
422+ ImplSourceUserDefined ( i) => i. nested ,
423423 ImplSourceParam ( n) => n,
424424 ImplSourceBuiltin ( i) => i. nested ,
425425 ImplSourceAutoImpl ( d) => d. nested ,
@@ -434,7 +434,7 @@ impl<'tcx, N> ImplSource<'tcx, N> {
434434
435435 pub fn borrow_nested_obligations ( & self ) -> & [ N ] {
436436 match & self {
437- ImplSourceImpl ( i) => & i. nested [ ..] ,
437+ ImplSourceUserDefined ( i) => & i. nested [ ..] ,
438438 ImplSourceParam ( n) => & n[ ..] ,
439439 ImplSourceBuiltin ( i) => & i. nested [ ..] ,
440440 ImplSourceAutoImpl ( d) => & d. nested [ ..] ,
@@ -452,7 +452,7 @@ impl<'tcx, N> ImplSource<'tcx, N> {
452452 F : FnMut ( N ) -> M ,
453453 {
454454 match self {
455- ImplSourceImpl ( i) => ImplSourceImpl ( ImplSourceImplData {
455+ ImplSourceUserDefined ( i) => ImplSourceUserDefined ( ImplSourceUserDefinedData {
456456 impl_def_id : i. impl_def_id ,
457457 substs : i. substs ,
458458 nested : i. nested . into_iter ( ) . map ( f) . collect ( ) ,
@@ -507,7 +507,7 @@ impl<'tcx, N> ImplSource<'tcx, N> {
507507/// is `()`, because codegen only requires a shallow resolution of an
508508/// impl, and nested obligations are satisfied later.
509509#[ derive( Clone , PartialEq , Eq , RustcEncodable , RustcDecodable , HashStable , TypeFoldable ) ]
510- pub struct ImplSourceImplData < ' tcx , N > {
510+ pub struct ImplSourceUserDefinedData < ' tcx , N > {
511511 pub impl_def_id : DefId ,
512512 pub substs : SubstsRef < ' tcx > ,
513513 pub nested : Vec < N > ,
0 commit comments