@@ -350,7 +350,7 @@ pub struct TypeckTables<'tcx> {
350350 /// canonical substitutions would include only `for<X> { Vec<X> }`.
351351 ///
352352 /// See also `AscribeUserType` statement in MIR.
353- user_provided_types : ItemLocalMap < CanonicalUserTypeAnnotation < ' tcx > > ,
353+ user_provided_types : ItemLocalMap < CanonicalUserType < ' tcx > > ,
354354
355355 /// Stores the canonicalized types provided by the user. See also
356356 /// `AscribeUserType` statement in MIR.
@@ -493,7 +493,7 @@ impl<'tcx> TypeckTables<'tcx> {
493493
494494 pub fn user_provided_types (
495495 & self
496- ) -> LocalTableInContext < ' _ , CanonicalUserTypeAnnotation < ' tcx > > {
496+ ) -> LocalTableInContext < ' _ , CanonicalUserType < ' tcx > > {
497497 LocalTableInContext {
498498 local_id_root : self . local_id_root ,
499499 data : & self . user_provided_types
@@ -502,7 +502,7 @@ impl<'tcx> TypeckTables<'tcx> {
502502
503503 pub fn user_provided_types_mut (
504504 & mut self
505- ) -> LocalTableInContextMut < ' _ , CanonicalUserTypeAnnotation < ' tcx > > {
505+ ) -> LocalTableInContextMut < ' _ , CanonicalUserType < ' tcx > > {
506506 LocalTableInContextMut {
507507 local_id_root : self . local_id_root ,
508508 data : & mut self . user_provided_types
@@ -807,12 +807,12 @@ newtype_index! {
807807
808808/// Mapping of type annotation indices to canonical user type annotations.
809809pub type CanonicalUserTypeAnnotations < ' tcx > =
810- IndexVec < UserTypeAnnotationIndex , ( Span , CanonicalUserTypeAnnotation < ' tcx > ) > ;
810+ IndexVec < UserTypeAnnotationIndex , ( Span , CanonicalUserType < ' tcx > ) > ;
811811
812812/// Canonicalized user type annotation.
813- pub type CanonicalUserTypeAnnotation < ' gcx > = Canonical < ' gcx , UserType < ' gcx > > ;
813+ pub type CanonicalUserType < ' gcx > = Canonical < ' gcx , UserType < ' gcx > > ;
814814
815- impl CanonicalUserTypeAnnotation < ' gcx > {
815+ impl CanonicalUserType < ' gcx > {
816816 /// Returns `true` if this represents a substitution of the form `[?0, ?1, ?2]`,
817817 /// i.e. each thing is mapped to a canonical variable with the same index.
818818 pub fn is_identity ( & self ) -> bool {
0 commit comments