@@ -453,7 +453,7 @@ pub(super) fn check_opaque<'tcx>(
453
453
/// Checks that an opaque type does not use `Self` or `T::Foo` projections that would result
454
454
/// in "inheriting lifetimes".
455
455
#[ instrument( level = "debug" , skip( tcx, span) ) ]
456
- pub ( super ) fn check_opaque_for_inheriting_lifetimes (
456
+ pub ( super ) fn check_opaque_for_inheriting_lifetimes < ' tcx > (
457
457
tcx : TyCtxt < ' tcx > ,
458
458
def_id : LocalDefId ,
459
459
span : Span ,
@@ -517,7 +517,7 @@ pub(super) fn check_opaque_for_inheriting_lifetimes(
517
517
}
518
518
}
519
519
520
- impl Visitor < ' tcx > for ProhibitOpaqueVisitor < ' tcx > {
520
+ impl < ' tcx > Visitor < ' tcx > for ProhibitOpaqueVisitor < ' tcx > {
521
521
type Map = rustc_middle:: hir:: map:: Map < ' tcx > ;
522
522
523
523
fn nested_visit_map ( & mut self ) -> hir:: intravisit:: NestedVisitorMap < Self :: Map > {
@@ -1512,7 +1512,7 @@ pub(super) use wfcheck::check_trait_item as check_trait_item_well_formed;
1512
1512
1513
1513
pub ( super ) use wfcheck:: check_impl_item as check_impl_item_well_formed;
1514
1514
1515
- fn async_opaque_type_cycle_error ( tcx : TyCtxt < ' tcx > , span : Span ) {
1515
+ fn async_opaque_type_cycle_error ( tcx : TyCtxt < ' _ > , span : Span ) {
1516
1516
struct_span_err ! ( tcx. sess, span, E0733 , "recursion in an `async fn` requires boxing" )
1517
1517
. span_label ( span, "recursive `async fn`" )
1518
1518
. note ( "a recursive `async fn` must be rewritten to return a boxed `dyn Future`" )
@@ -1530,7 +1530,7 @@ fn async_opaque_type_cycle_error(tcx: TyCtxt<'tcx>, span: Span) {
1530
1530
///
1531
1531
/// If all the return expressions evaluate to `!`, then we explain that the error will go away
1532
1532
/// after changing it. This can happen when a user uses `panic!()` or similar as a placeholder.
1533
- fn opaque_type_cycle_error ( tcx : TyCtxt < ' tcx > , def_id : LocalDefId , span : Span ) {
1533
+ fn opaque_type_cycle_error ( tcx : TyCtxt < ' _ > , def_id : LocalDefId , span : Span ) {
1534
1534
let mut err = struct_span_err ! ( tcx. sess, span, E0720 , "cannot resolve opaque type" ) ;
1535
1535
1536
1536
let mut label = false ;
0 commit comments