diff options
| author | Jules Bertholet <julesbertholet@quoi.xyz> | 2024-04-16 19:23:30 -0400 |
|---|---|---|
| committer | Jules Bertholet <julesbertholet@quoi.xyz> | 2024-04-17 09:34:39 -0400 |
| commit | 2a4624ddd1d4084f385bbd704e0f90c85e16c42f (patch) | |
| tree | 537a2011738e639ebbd562d10d78c13a67fe0b30 /compiler/rustc_trait_selection/src | |
| parent | d19e48d79ab428387bbc354d677d7d9ba221d174 (diff) | |
| download | rust-2a4624ddd1d4084f385bbd704e0f90c85e16c42f.tar.gz rust-2a4624ddd1d4084f385bbd704e0f90c85e16c42f.zip | |
Rename `BindingAnnotation` to `BindingMode`
Diffstat (limited to 'compiler/rustc_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs index 4c1784a18e5..db3794c1c40 100644 --- a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs +++ b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs @@ -751,9 +751,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> { // Get the local name of this closure. This can be inaccurate because // of the possibility of reassignment, but this should be good enough. match &kind { - hir::PatKind::Binding(hir::BindingAnnotation::NONE, _, ident, None) => { - Some(ident.name) - } + hir::PatKind::Binding(hir::BindingMode::NONE, _, ident, None) => Some(ident.name), _ => { err.note(msg); None |
