@@ -81,7 +81,7 @@ pub enum Linkage {
81
81
Dynamic ,
82
82
}
83
83
84
- pub fn calculate < ' tcx > ( tcx : TyCtxt < ' tcx > ) {
84
+ pub fn calculate ( tcx : TyCtxt < ' _ > ) {
85
85
let sess = & tcx. sess ;
86
86
let fmts = sess. crate_types . borrow ( ) . iter ( ) . map ( |& ty| {
87
87
let linkage = calculate_type ( tcx, ty) ;
@@ -92,7 +92,7 @@ pub fn calculate<'tcx>(tcx: TyCtxt<'tcx>) {
92
92
sess. dependency_formats . set ( fmts) ;
93
93
}
94
94
95
- fn calculate_type < ' tcx > ( tcx : TyCtxt < ' tcx > , ty : config:: CrateType ) -> DependencyList {
95
+ fn calculate_type ( tcx : TyCtxt < ' _ > , ty : config:: CrateType ) -> DependencyList {
96
96
let sess = & tcx. sess ;
97
97
98
98
if !sess. opts . output_types . should_codegen ( ) {
@@ -267,7 +267,7 @@ fn add_library(
267
267
}
268
268
}
269
269
270
- fn attempt_static < ' tcx > ( tcx : TyCtxt < ' tcx > ) -> Option < DependencyList > {
270
+ fn attempt_static ( tcx : TyCtxt < ' _ > ) -> Option < DependencyList > {
271
271
let sess = & tcx. sess ;
272
272
let crates = cstore:: used_crates ( tcx, RequireStatic ) ;
273
273
if !crates. iter ( ) . by_ref ( ) . all ( |& ( _, ref p) | p. is_some ( ) ) {
@@ -324,7 +324,7 @@ fn activate_injected_dep(injected: Option<CrateNum>,
324
324
325
325
// After the linkage for a crate has been determined we need to verify that
326
326
// 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 ] ) {
328
328
let sess = & tcx. sess ;
329
329
if list. len ( ) == 0 {
330
330
return
0 commit comments