@@ -51,7 +51,7 @@ use ty::steal::Steal;
51
51
use ty:: BindingMode ;
52
52
use ty:: CanonicalTy ;
53
53
use ty:: CanonicalPolyFnSig ;
54
- use util:: nodemap:: { DefIdSet , ItemLocalMap } ;
54
+ use util:: nodemap:: { DefIdMap , DefIdSet , ItemLocalMap } ;
55
55
use util:: nodemap:: { FxHashMap , FxHashSet } ;
56
56
use smallvec:: SmallVec ;
57
57
use rustc_data_structures:: stable_hasher:: { HashStable , hash_stable_hashmap,
@@ -362,7 +362,7 @@ pub struct TypeckTables<'tcx> {
362
362
363
363
/// Stores the canonicalized types provided by the user. See also
364
364
/// `AscribeUserType` statement in MIR.
365
- user_provided_sigs : ItemLocalMap < CanonicalPolyFnSig < ' tcx > > ,
365
+ pub user_provided_sigs : DefIdMap < CanonicalPolyFnSig < ' tcx > > ,
366
366
367
367
/// Stores the substitutions that the user explicitly gave (if any)
368
368
/// attached to `id`. These will not include any inferred
@@ -519,20 +519,6 @@ impl<'tcx> TypeckTables<'tcx> {
519
519
}
520
520
}
521
521
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
-
536
522
pub fn node_types ( & self ) -> LocalTableInContext < ' _ , Ty < ' tcx > > {
537
523
LocalTableInContext {
538
524
local_id_root : self . local_id_root ,
0 commit comments