@@ -453,7 +453,7 @@ pub(super) fn check_opaque<'tcx>(
453453/// Checks that an opaque type does not use `Self` or `T::Foo` projections that would result
454454/// in "inheriting lifetimes".
455455#[ 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 > (
457457 tcx : TyCtxt < ' tcx > ,
458458 def_id : LocalDefId ,
459459 span : Span ,
@@ -517,7 +517,7 @@ pub(super) fn check_opaque_for_inheriting_lifetimes(
517517 }
518518 }
519519
520- impl Visitor < ' tcx > for ProhibitOpaqueVisitor < ' tcx > {
520+ impl < ' tcx > Visitor < ' tcx > for ProhibitOpaqueVisitor < ' tcx > {
521521 type Map = rustc_middle:: hir:: map:: Map < ' tcx > ;
522522
523523 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;
15121512
15131513pub ( super ) use wfcheck:: check_impl_item as check_impl_item_well_formed;
15141514
1515- fn async_opaque_type_cycle_error ( tcx : TyCtxt < ' tcx > , span : Span ) {
1515+ fn async_opaque_type_cycle_error ( tcx : TyCtxt < ' _ > , span : Span ) {
15161516 struct_span_err ! ( tcx. sess, span, E0733 , "recursion in an `async fn` requires boxing" )
15171517 . span_label ( span, "recursive `async fn`" )
15181518 . 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) {
15301530///
15311531/// If all the return expressions evaluate to `!`, then we explain that the error will go away
15321532/// 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 ) {
15341534 let mut err = struct_span_err ! ( tcx. sess, span, E0720 , "cannot resolve opaque type" ) ;
15351535
15361536 let mut label = false ;
0 commit comments