@@ -250,6 +250,7 @@ impl<'a, 'tcx> Metadata<'a, 'tcx> for (CrateMetadataRef<'a>, TyCtxt<'tcx>) {
250250}
251251
252252impl < T : ParameterizedOverTcx > LazyValue < T > {
253+ #[ inline]
253254 fn decode < ' a , ' tcx , M : Metadata < ' a , ' tcx > > ( self , metadata : M ) -> T :: Value < ' tcx >
254255 where
255256 T :: Value < ' tcx > : Decodable < DecodeContext < ' a , ' tcx > > ,
@@ -294,6 +295,7 @@ unsafe impl<'a, 'tcx, T: Decodable<DecodeContext<'a, 'tcx>>> TrustedLen
294295}
295296
296297impl < T : ParameterizedOverTcx > LazyArray < T > {
298+ #[ inline]
297299 fn decode < ' a , ' tcx , M : Metadata < ' a , ' tcx > > (
298300 self ,
299301 metadata : M ,
@@ -420,25 +422,29 @@ impl<'a, 'tcx> TyDecoder for DecodeContext<'a, 'tcx> {
420422}
421423
422424impl < ' a , ' tcx > Decodable < DecodeContext < ' a , ' tcx > > for CrateNum {
425+ #[ inline]
423426 fn decode ( d : & mut DecodeContext < ' a , ' tcx > ) -> CrateNum {
424427 let cnum = CrateNum :: from_u32 ( d. read_u32 ( ) ) ;
425428 d. map_encoded_cnum_to_current ( cnum)
426429 }
427430}
428431
429432impl < ' a , ' tcx > Decodable < DecodeContext < ' a , ' tcx > > for DefIndex {
433+ #[ inline]
430434 fn decode ( d : & mut DecodeContext < ' a , ' tcx > ) -> DefIndex {
431435 DefIndex :: from_u32 ( d. read_u32 ( ) )
432436 }
433437}
434438
435439impl < ' a , ' tcx > Decodable < DecodeContext < ' a , ' tcx > > for ExpnIndex {
440+ #[ inline]
436441 fn decode ( d : & mut DecodeContext < ' a , ' tcx > ) -> ExpnIndex {
437442 ExpnIndex :: from_u32 ( d. read_u32 ( ) )
438443 }
439444}
440445
441446impl < ' a , ' tcx > Decodable < DecodeContext < ' a , ' tcx > > for ast:: AttrId {
447+ #[ inline]
442448 fn decode ( d : & mut DecodeContext < ' a , ' tcx > ) -> ast:: AttrId {
443449 let sess = d. sess . expect ( "can't decode AttrId without Session" ) ;
444450 sess. parse_sess . attr_id_generator . mk_attr_id ( )
@@ -657,6 +663,7 @@ impl<'a, 'tcx, T> Decodable<DecodeContext<'a, 'tcx>> for LazyValue<T> {
657663}
658664
659665impl < ' a , ' tcx , T > Decodable < DecodeContext < ' a , ' tcx > > for LazyArray < T > {
666+ #[ inline]
660667 fn decode ( decoder : & mut DecodeContext < ' a , ' tcx > ) -> Self {
661668 let len = decoder. read_usize ( ) ;
662669 if len == 0 { LazyArray :: default ( ) } else { decoder. read_lazy_array ( len) }
0 commit comments