@@ -54,13 +54,13 @@ use serialize::{EncoderHelpers};
54
54
#[ cfg( test) ] use syntax:: print:: pprust;
55
55
#[ cfg( test) ] use std:: gc:: Gc ;
56
56
57
- struct DecodeContext < ' a > {
57
+ struct DecodeContext < ' a , ' tcx : ' a > {
58
58
cdata : & ' a cstore:: crate_metadata ,
59
- tcx : & ' a ty:: ctxt ,
59
+ tcx : & ' a ty:: ctxt < ' tcx > ,
60
60
}
61
61
62
- struct ExtendedDecodeContext < ' a > {
63
- dcx : & ' a DecodeContext < ' a > ,
62
+ struct ExtendedDecodeContext < ' a , ' tcx : ' a > {
63
+ dcx : & ' a DecodeContext < ' a , ' tcx > ,
64
64
from_id_range : ast_util:: IdRange ,
65
65
to_id_range : ast_util:: IdRange
66
66
}
@@ -176,7 +176,7 @@ fn reserve_id_range(sess: &Session,
176
176
ast_util:: IdRange { min : to_id_min, max : to_id_max }
177
177
}
178
178
179
- impl < ' a > ExtendedDecodeContext < ' a > {
179
+ impl < ' a , ' tcx > ExtendedDecodeContext < ' a , ' tcx > {
180
180
pub fn tr_id ( & self , id : ast:: NodeId ) -> ast:: NodeId {
181
181
/*!
182
182
* Translates an internal id, meaning a node id that is known
@@ -382,11 +382,11 @@ fn decode_ast(par_doc: rbml::Doc) -> ast::InlinedItem {
382
382
Decodable :: decode ( & mut d) . unwrap ( )
383
383
}
384
384
385
- struct AstRenumberer < ' a > {
386
- xcx : & ' a ExtendedDecodeContext < ' a > ,
385
+ struct AstRenumberer < ' a , ' tcx : ' a > {
386
+ xcx : & ' a ExtendedDecodeContext < ' a , ' tcx > ,
387
387
}
388
388
389
- impl < ' a > ast_map:: FoldOps for AstRenumberer < ' a > {
389
+ impl < ' a , ' tcx > ast_map:: FoldOps for AstRenumberer < ' a , ' tcx > {
390
390
fn new_id ( & self , id : ast:: NodeId ) -> ast:: NodeId {
391
391
if id == ast:: DUMMY_NODE_ID {
392
392
// Used by ast_map to map the NodeInlinedParent.
@@ -914,12 +914,12 @@ fn encode_vec_per_param_space<T>(rbml_w: &mut Encoder,
914
914
// ______________________________________________________________________
915
915
// Encoding and decoding the side tables
916
916
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 > ;
919
919
}
920
920
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 > {
923
923
tyencode:: ctxt {
924
924
diag : self . tcx . sess . diagnostic ( ) ,
925
925
ds : e:: def_to_string,
0 commit comments