@@ -51,7 +51,7 @@ use ty::steal::Steal;
5151use ty:: BindingMode ;
5252use ty:: CanonicalTy ;
5353use ty:: CanonicalPolyFnSig ;
54- use util:: nodemap:: { DefIdSet , ItemLocalMap } ;
54+ use util:: nodemap:: { DefIdMap , DefIdSet , ItemLocalMap } ;
5555use util:: nodemap:: { FxHashMap , FxHashSet } ;
5656use smallvec:: SmallVec ;
5757use rustc_data_structures:: stable_hasher:: { HashStable , hash_stable_hashmap,
@@ -362,7 +362,7 @@ pub struct TypeckTables<'tcx> {
362362
363363 /// Stores the canonicalized types provided by the user. See also
364364 /// `AscribeUserType` statement in MIR.
365- user_provided_sigs : ItemLocalMap < CanonicalPolyFnSig < ' tcx > > ,
365+ pub user_provided_sigs : DefIdMap < CanonicalPolyFnSig < ' tcx > > ,
366366
367367 /// Stores the substitutions that the user explicitly gave (if any)
368368 /// attached to `id`. These will not include any inferred
@@ -519,20 +519,6 @@ impl<'tcx> TypeckTables<'tcx> {
519519 }
520520 }
521521
522- pub fn user_provided_sigs ( & self ) -> LocalTableInContext < ' _ , CanonicalPolyFnSig < ' tcx > > {
523- LocalTableInContext {
524- local_id_root : self . local_id_root ,
525- data : & self . user_provided_sigs
526- }
527- }
528-
529- pub fn user_provided_sigs_mut ( & mut self ) -> LocalTableInContextMut < ' _ , CanonicalPolyFnSig < ' tcx > > {
530- LocalTableInContextMut {
531- local_id_root : self . local_id_root ,
532- data : & mut self . user_provided_sigs
533- }
534- }
535-
536522 pub fn node_types ( & self ) -> LocalTableInContext < ' _ , Ty < ' tcx > > {
537523 LocalTableInContext {
538524 local_id_root : self . local_id_root ,
0 commit comments