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#![ feature( iter_zip) ]
9594#![ recursion_limit = "256" ]
9695
@@ -117,7 +116,7 @@ pub mod test;
117116/// This function computes the symbol name for the given `instance` and the
118117/// given instantiating crate. That is, if you know that instance X is
119118/// instantiated in crate Y, this is the symbol name this instance would have.
120- pub fn symbol_name_for_instance_in_crate (
119+ pub fn symbol_name_for_instance_in_crate < ' tcx > (
121120 tcx : TyCtxt < ' tcx > ,
122121 instance : Instance < ' tcx > ,
123122 instantiating_crate : CrateNum ,
@@ -132,7 +131,7 @@ pub fn provide(providers: &mut Providers) {
132131// The `symbol_name` query provides the symbol name for calling a given
133132// instance from the local crate. In particular, it will also look up the
134133// correct symbol name of instances from upstream crates.
135- fn symbol_name_provider ( tcx : TyCtxt < ' tcx > , instance : Instance < ' tcx > ) -> ty:: SymbolName < ' tcx > {
134+ fn symbol_name_provider < ' tcx > ( tcx : TyCtxt < ' tcx > , instance : Instance < ' tcx > ) -> ty:: SymbolName < ' tcx > {
136135 let symbol_name = compute_symbol_name ( tcx, instance, || {
137136 // This closure determines the instantiating crate for instances that
138137 // need an instantiating-crate-suffix for their symbol name, in order
@@ -152,14 +151,14 @@ fn symbol_name_provider(tcx: TyCtxt<'tcx>, instance: Instance<'tcx>) -> ty::Symb
152151}
153152
154153/// This function computes the typeid for the given function ABI.
155- pub fn typeid_for_fnabi ( tcx : TyCtxt < ' tcx > , fn_abi : & FnAbi < ' tcx , Ty < ' tcx > > ) -> String {
154+ pub fn typeid_for_fnabi < ' tcx > ( tcx : TyCtxt < ' tcx > , fn_abi : & FnAbi < ' tcx , Ty < ' tcx > > ) -> String {
156155 v0:: mangle_typeid_for_fnabi ( tcx, fn_abi)
157156}
158157
159158/// Computes the symbol name for the given instance. This function will call
160159/// `compute_instantiating_crate` if it needs to factor the instantiating crate
161160/// into the symbol name.
162- fn compute_symbol_name (
161+ fn compute_symbol_name < ' tcx > (
163162 tcx : TyCtxt < ' tcx > ,
164163 instance : Instance < ' tcx > ,
165164 compute_instantiating_crate : impl FnOnce ( ) -> CrateNum ,
0 commit comments