diff options
| author | Tshepang Mbambo <hopsi@tuta.io> | 2025-06-09 07:19:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-09 07:19:50 +0200 |
| commit | 4967fd24dec0b178e8766c0d5ce6146d2fd2c152 (patch) | |
| tree | 84784da83b710a97f9944b753c9d7717e37b631b /compiler/rustc_trait_selection/src/errors.rs | |
| parent | 8290ab531ce162a920da5d3c625889697ff65375 (diff) | |
| parent | 7565e75591c2ef184bc7a359b3a436a62d45358a (diff) | |
| download | rust-4967fd24dec0b178e8766c0d5ce6146d2fd2c152.tar.gz rust-4967fd24dec0b178e8766c0d5ce6146d2fd2c152.zip | |
Merge pull request #2461 from rust-lang/rustc-pull
Rustc pull update
Diffstat (limited to 'compiler/rustc_trait_selection/src/errors.rs')
| -rw-r--r-- | compiler/rustc_trait_selection/src/errors.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/rustc_trait_selection/src/errors.rs b/compiler/rustc_trait_selection/src/errors.rs index 779c861637a..06f81ac554e 100644 --- a/compiler/rustc_trait_selection/src/errors.rs +++ b/compiler/rustc_trait_selection/src/errors.rs @@ -201,11 +201,12 @@ pub struct ClosureFnMutLabel { } #[derive(Diagnostic)] -#[diag(trait_selection_async_closure_not_fn)] -pub(crate) struct AsyncClosureNotFn { +#[diag(trait_selection_coro_closure_not_fn)] +pub(crate) struct CoroClosureNotFn { #[primary_span] pub span: Span, pub kind: &'static str, + pub coro_kind: String, } #[derive(Diagnostic)] @@ -592,7 +593,7 @@ impl Subdiagnostic for AddLifetimeParamsSuggestion<'_> { matches!( arg, hir::GenericArg::Lifetime(lifetime) - if lifetime.is_syntactically_hidden() + if lifetime.is_implicit() ) }) { self.suggestions.push(( |
