9090#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/" ) ]
9191#![ feature( never_type) ]
9292#![ feature( nll) ]
93- #![ feature( in_band_lifetimes) ]
9493#![ recursion_limit = "256" ]
9594
9695#[ macro_use]
@@ -116,7 +115,7 @@ pub mod test;
116115/// This function computes the symbol name for the given `instance` and the
117116/// given instantiating crate. That is, if you know that instance X is
118117/// 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 > (
120119 tcx : TyCtxt < ' tcx > ,
121120 instance : Instance < ' tcx > ,
122121 instantiating_crate : CrateNum ,
@@ -131,7 +130,7 @@ pub fn provide(providers: &mut Providers) {
131130// The `symbol_name` query provides the symbol name for calling a given
132131// instance from the local crate. In particular, it will also look up the
133132// 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 > {
135134 let symbol_name = compute_symbol_name ( tcx, instance, || {
136135 // This closure determines the instantiating crate for instances that
137136 // 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
151150}
152151
153152/// 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 {
155154 v0:: mangle_typeid_for_fnabi ( tcx, fn_abi)
156155}
157156
158157/// Computes the symbol name for the given instance. This function will call
159158/// `compute_instantiating_crate` if it needs to factor the instantiating crate
160159/// into the symbol name.
161- fn compute_symbol_name (
160+ fn compute_symbol_name < ' tcx > (
162161 tcx : TyCtxt < ' tcx > ,
163162 instance : Instance < ' tcx > ,
164163 compute_instantiating_crate : impl FnOnce ( ) -> CrateNum ,
0 commit comments