@@ -54,13 +54,13 @@ use serialize::{EncoderHelpers};
5454#[ cfg( test) ] use syntax:: print:: pprust;
5555#[ cfg( test) ] use std:: gc:: Gc ;
5656
57- struct DecodeContext < ' a > {
57+ struct DecodeContext < ' a , ' tcx : ' a > {
5858 cdata : & ' a cstore:: crate_metadata ,
59- tcx : & ' a ty:: ctxt ,
59+ tcx : & ' a ty:: ctxt < ' tcx > ,
6060}
6161
62- struct ExtendedDecodeContext < ' a > {
63- dcx : & ' a DecodeContext < ' a > ,
62+ struct ExtendedDecodeContext < ' a , ' tcx : ' a > {
63+ dcx : & ' a DecodeContext < ' a , ' tcx > ,
6464 from_id_range : ast_util:: IdRange ,
6565 to_id_range : ast_util:: IdRange
6666}
@@ -176,7 +176,7 @@ fn reserve_id_range(sess: &Session,
176176 ast_util:: IdRange { min : to_id_min, max : to_id_max }
177177}
178178
179- impl < ' a > ExtendedDecodeContext < ' a > {
179+ impl < ' a , ' tcx > ExtendedDecodeContext < ' a , ' tcx > {
180180 pub fn tr_id ( & self , id : ast:: NodeId ) -> ast:: NodeId {
181181 /*!
182182 * Translates an internal id, meaning a node id that is known
@@ -382,11 +382,11 @@ fn decode_ast(par_doc: rbml::Doc) -> ast::InlinedItem {
382382 Decodable :: decode ( & mut d) . unwrap ( )
383383}
384384
385- struct AstRenumberer < ' a > {
386- xcx : & ' a ExtendedDecodeContext < ' a > ,
385+ struct AstRenumberer < ' a , ' tcx : ' a > {
386+ xcx : & ' a ExtendedDecodeContext < ' a , ' tcx > ,
387387}
388388
389- impl < ' a > ast_map:: FoldOps for AstRenumberer < ' a > {
389+ impl < ' a , ' tcx > ast_map:: FoldOps for AstRenumberer < ' a , ' tcx > {
390390 fn new_id ( & self , id : ast:: NodeId ) -> ast:: NodeId {
391391 if id == ast:: DUMMY_NODE_ID {
392392 // Used by ast_map to map the NodeInlinedParent.
@@ -914,12 +914,12 @@ fn encode_vec_per_param_space<T>(rbml_w: &mut Encoder,
914914// ______________________________________________________________________
915915// Encoding and decoding the side tables
916916
917- trait get_ty_str_ctxt {
918- fn ty_str_ctxt < ' a > ( & ' a self ) -> tyencode:: ctxt < ' a > ;
917+ trait get_ty_str_ctxt < ' tcx > {
918+ fn ty_str_ctxt < ' a > ( & ' a self ) -> tyencode:: ctxt < ' a , ' tcx > ;
919919}
920920
921- impl < ' a > get_ty_str_ctxt for e:: EncodeContext < ' a > {
922- fn ty_str_ctxt < ' a > ( & ' a self ) -> tyencode:: ctxt < ' a > {
921+ impl < ' a , ' tcx > get_ty_str_ctxt < ' tcx > for e:: EncodeContext < ' a , ' tcx > {
922+ fn ty_str_ctxt < ' a > ( & ' a self ) -> tyencode:: ctxt < ' a , ' tcx > {
923923 tyencode:: ctxt {
924924 diag : self . tcx . sess . diagnostic ( ) ,
925925 ds : e:: def_to_string,
0 commit comments