@@ -26,8 +26,7 @@ use rustc_middle::ty::codec::TyDecoder;
26
26
use rustc_middle:: ty:: fast_reject:: SimplifiedType ;
27
27
use rustc_middle:: ty:: GeneratorDiagnosticData ;
28
28
use rustc_middle:: ty:: { self , ParameterizedOverTcx , Ty , TyCtxt , Visibility } ;
29
- use rustc_serialize:: opaque:: MemDecoder ;
30
- use rustc_serialize:: { Decodable , Decoder } ;
29
+ use rustc_serialize:: { opaque, Decodable , Decoder } ;
31
30
use rustc_session:: cstore:: {
32
31
CrateSource , ExternCrate , ForeignModule , LinkagePreference , NativeLib ,
33
32
} ;
@@ -155,7 +154,7 @@ struct ImportedSourceFile {
155
154
}
156
155
157
156
pub ( super ) struct DecodeContext < ' a , ' tcx > {
158
- opaque : MemDecoder < ' a > ,
157
+ opaque : opaque :: Decoder < ' a > ,
159
158
cdata : Option < CrateMetadataRef < ' a > > ,
160
159
blob : & ' a MetadataBlob ,
161
160
sess : Option < & ' tcx Session > ,
@@ -187,7 +186,7 @@ pub(super) trait Metadata<'a, 'tcx>: Copy {
187
186
fn decoder ( self , pos : usize ) -> DecodeContext < ' a , ' tcx > {
188
187
let tcx = self . tcx ( ) ;
189
188
DecodeContext {
190
- opaque : MemDecoder :: new ( self . blob ( ) , pos) ,
189
+ opaque : opaque :: Decoder :: new ( self . blob ( ) , pos) ,
191
190
cdata : self . cdata ( ) ,
192
191
blob : self . blob ( ) ,
193
192
sess : self . sess ( ) . or ( tcx. map ( |tcx| tcx. sess ) ) ,
@@ -419,7 +418,7 @@ impl<'a, 'tcx> TyDecoder for DecodeContext<'a, 'tcx> {
419
418
where
420
419
F : FnOnce ( & mut Self ) -> R ,
421
420
{
422
- let new_opaque = MemDecoder :: new ( self . opaque . data , pos) ;
421
+ let new_opaque = opaque :: Decoder :: new ( self . opaque . data , pos) ;
423
422
let old_opaque = mem:: replace ( & mut self . opaque , new_opaque) ;
424
423
let old_state = mem:: replace ( & mut self . lazy_state , LazyState :: NoNode ) ;
425
424
let r = f ( self ) ;
0 commit comments