90
90
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
91
91
#![ feature( never_type) ]
92
92
#![ feature( nll) ]
93
- #![ feature( in_band_lifetimes) ]
94
93
#![ recursion_limit = "256" ]
95
94
96
95
#[ macro_use]
@@ -116,7 +115,7 @@ pub mod test;
116
115
/// This function computes the symbol name for the given `instance` and the
117
116
/// given instantiating crate. That is, if you know that instance X is
118
117
/// instantiated in crate Y, this is the symbol name this instance would have.
119
- pub fn symbol_name_for_instance_in_crate (
118
+ pub fn symbol_name_for_instance_in_crate < ' tcx > (
120
119
tcx : TyCtxt < ' tcx > ,
121
120
instance : Instance < ' tcx > ,
122
121
instantiating_crate : CrateNum ,
@@ -131,7 +130,7 @@ pub fn provide(providers: &mut Providers) {
131
130
// The `symbol_name` query provides the symbol name for calling a given
132
131
// instance from the local crate. In particular, it will also look up the
133
132
// correct symbol name of instances from upstream crates.
134
- fn symbol_name_provider ( tcx : TyCtxt < ' tcx > , instance : Instance < ' tcx > ) -> ty:: SymbolName < ' tcx > {
133
+ fn symbol_name_provider < ' tcx > ( tcx : TyCtxt < ' tcx > , instance : Instance < ' tcx > ) -> ty:: SymbolName < ' tcx > {
135
134
let symbol_name = compute_symbol_name ( tcx, instance, || {
136
135
// This closure determines the instantiating crate for instances that
137
136
// need an instantiating-crate-suffix for their symbol name, in order
@@ -151,14 +150,14 @@ fn symbol_name_provider(tcx: TyCtxt<'tcx>, instance: Instance<'tcx>) -> ty::Symb
151
150
}
152
151
153
152
/// This function computes the typeid for the given function ABI.
154
- pub fn typeid_for_fnabi ( tcx : TyCtxt < ' tcx > , fn_abi : & FnAbi < ' tcx , Ty < ' tcx > > ) -> String {
153
+ pub fn typeid_for_fnabi < ' tcx > ( tcx : TyCtxt < ' tcx > , fn_abi : & FnAbi < ' tcx , Ty < ' tcx > > ) -> String {
155
154
v0:: mangle_typeid_for_fnabi ( tcx, fn_abi)
156
155
}
157
156
158
157
/// Computes the symbol name for the given instance. This function will call
159
158
/// `compute_instantiating_crate` if it needs to factor the instantiating crate
160
159
/// into the symbol name.
161
- fn compute_symbol_name (
160
+ fn compute_symbol_name < ' tcx > (
162
161
tcx : TyCtxt < ' tcx > ,
163
162
instance : Instance < ' tcx > ,
164
163
compute_instantiating_crate : impl FnOnce ( ) -> CrateNum ,
0 commit comments