Rollup merge of #152316 - cuiweixie:bugfix-continue, r=petrochenkov

fix: add continue

 should be same in:
d3ec6a351a/compiler/rustc_trait_selection/src/error_reporting/infer/nice_region_error/static_impl_trait.rs (L156-L159)
This commit is contained in:
Jacob Pratt 2026-02-12 00:41:09 -05:00 committed by GitHub
commit 3ba1a835d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -885,6 +885,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {
for alias_ty in alias_tys {
if alias_ty.span.desugaring_kind().is_some() {
// Skip `async` desugaring `impl Future`.
continue;
}
if let TyKind::TraitObject(_, lt) = alias_ty.kind {
if lt.kind == hir::LifetimeKind::ImplicitObjectLifetimeDefault {