@@ -26,8 +26,7 @@ use rustc_middle::ty::codec::TyDecoder;
2626use rustc_middle:: ty:: fast_reject:: SimplifiedType ;
2727use rustc_middle:: ty:: GeneratorDiagnosticData ;
2828use 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 } ;
3130use rustc_session:: cstore:: {
3231 CrateSource , ExternCrate , ForeignModule , LinkagePreference , NativeLib ,
3332} ;
@@ -155,7 +154,7 @@ struct ImportedSourceFile {
155154}
156155
157156pub ( super ) struct DecodeContext < ' a , ' tcx > {
158- opaque : MemDecoder < ' a > ,
157+ opaque : opaque :: Decoder < ' a > ,
159158 cdata : Option < CrateMetadataRef < ' a > > ,
160159 blob : & ' a MetadataBlob ,
161160 sess : Option < & ' tcx Session > ,
@@ -187,7 +186,7 @@ pub(super) trait Metadata<'a, 'tcx>: Copy {
187186 fn decoder ( self , pos : usize ) -> DecodeContext < ' a , ' tcx > {
188187 let tcx = self . tcx ( ) ;
189188 DecodeContext {
190- opaque : MemDecoder :: new ( self . blob ( ) , pos) ,
189+ opaque : opaque :: Decoder :: new ( self . blob ( ) , pos) ,
191190 cdata : self . cdata ( ) ,
192191 blob : self . blob ( ) ,
193192 sess : self . sess ( ) . or ( tcx. map ( |tcx| tcx. sess ) ) ,
@@ -419,7 +418,7 @@ impl<'a, 'tcx> TyDecoder for DecodeContext<'a, 'tcx> {
419418 where
420419 F : FnOnce ( & mut Self ) -> R ,
421420 {
422- let new_opaque = MemDecoder :: new ( self . opaque . data , pos) ;
421+ let new_opaque = opaque :: Decoder :: new ( self . opaque . data , pos) ;
423422 let old_opaque = mem:: replace ( & mut self . opaque , new_opaque) ;
424423 let old_state = mem:: replace ( & mut self . lazy_state , LazyState :: NoNode ) ;
425424 let r = f ( self ) ;
0 commit comments