@@ -81,7 +81,7 @@ pub enum Linkage {
8181 Dynamic ,
8282}
8383
84- pub fn calculate < ' tcx > ( tcx : TyCtxt < ' tcx > ) {
84+ pub fn calculate ( tcx : TyCtxt < ' _ > ) {
8585 let sess = & tcx. sess ;
8686 let fmts = sess. crate_types . borrow ( ) . iter ( ) . map ( |& ty| {
8787 let linkage = calculate_type ( tcx, ty) ;
@@ -92,7 +92,7 @@ pub fn calculate<'tcx>(tcx: TyCtxt<'tcx>) {
9292 sess. dependency_formats . set ( fmts) ;
9393}
9494
95- fn calculate_type < ' tcx > ( tcx : TyCtxt < ' tcx > , ty : config:: CrateType ) -> DependencyList {
95+ fn calculate_type ( tcx : TyCtxt < ' _ > , ty : config:: CrateType ) -> DependencyList {
9696 let sess = & tcx. sess ;
9797
9898 if !sess. opts . output_types . should_codegen ( ) {
@@ -267,7 +267,7 @@ fn add_library(
267267 }
268268}
269269
270- fn attempt_static < ' tcx > ( tcx : TyCtxt < ' tcx > ) -> Option < DependencyList > {
270+ fn attempt_static ( tcx : TyCtxt < ' _ > ) -> Option < DependencyList > {
271271 let sess = & tcx. sess ;
272272 let crates = cstore:: used_crates ( tcx, RequireStatic ) ;
273273 if !crates. iter ( ) . by_ref ( ) . all ( |& ( _, ref p) | p. is_some ( ) ) {
@@ -324,7 +324,7 @@ fn activate_injected_dep(injected: Option<CrateNum>,
324324
325325// After the linkage for a crate has been determined we need to verify that
326326// there's only going to be one allocator in the output.
327- fn verify_ok < ' tcx > ( tcx : TyCtxt < ' tcx > , list : & [ Linkage ] ) {
327+ fn verify_ok ( tcx : TyCtxt < ' _ > , list : & [ Linkage ] ) {
328328 let sess = & tcx. sess ;
329329 if list. len ( ) == 0 {
330330 return
0 commit comments