@@ -26,6 +26,7 @@ use rustc_middle::middle::cstore::{ForeignModule, LinkagePreference, NativeLib};
2626use rustc_middle:: middle:: exported_symbols:: { ExportedSymbol , SymbolExportLevel } ;
2727use rustc_middle:: mir:: interpret:: { AllocDecodingSession , AllocDecodingState } ;
2828use rustc_middle:: mir:: { self , Body , Promoted } ;
29+ use rustc_middle:: thir;
2930use rustc_middle:: ty:: codec:: TyDecoder ;
3031use rustc_middle:: ty:: { self , Ty , TyCtxt , Visibility } ;
3132use rustc_serialize:: { opaque, Decodable , Decoder } ;
@@ -540,7 +541,7 @@ impl<'a, 'tcx> Decodable<DecodeContext<'a, 'tcx>> for Span {
540541 }
541542}
542543
543- impl < ' a , ' tcx > Decodable < DecodeContext < ' a , ' tcx > > for & ' tcx [ mir :: abstract_const:: Node < ' tcx > ] {
544+ impl < ' a , ' tcx > Decodable < DecodeContext < ' a , ' tcx > > for & ' tcx [ thir :: abstract_const:: Node < ' tcx > ] {
544545 fn decode ( d : & mut DecodeContext < ' a , ' tcx > ) -> Result < Self , String > {
545546 ty:: codec:: RefDecodable :: decode ( d)
546547 }
@@ -1198,14 +1199,14 @@ impl<'a, 'tcx> CrateMetadataRef<'a> {
11981199 . decode ( ( self , tcx) )
11991200 }
12001201
1201- fn get_mir_abstract_const (
1202+ fn get_thir_abstract_const (
12021203 & self ,
12031204 tcx : TyCtxt < ' tcx > ,
12041205 id : DefIndex ,
1205- ) -> Result < Option < & ' tcx [ mir :: abstract_const:: Node < ' tcx > ] > , ErrorReported > {
1206+ ) -> Result < Option < & ' tcx [ thir :: abstract_const:: Node < ' tcx > ] > , ErrorReported > {
12061207 self . root
12071208 . tables
1208- . mir_abstract_consts
1209+ . thir_abstract_consts
12091210 . get ( self , id)
12101211 . map_or ( Ok ( None ) , |v| Ok ( Some ( v. decode ( ( self , tcx) ) ) ) )
12111212 }
0 commit comments