diff options
| author | Cameron Steffen <cam.steffen94@gmail.com> | 2022-08-30 17:34:35 -0500 |
|---|---|---|
| committer | Cameron Steffen <cam.steffen94@gmail.com> | 2022-09-02 12:55:05 -0500 |
| commit | 02ba216e3cb6edd4a51e0738953a4276aa84fa20 (patch) | |
| tree | c95feda408690266979d174e2511515d15805785 /compiler/rustc_borrowck/src | |
| parent | 9353538c7bea6edb245457712cec720305c4576e (diff) | |
| download | rust-02ba216e3cb6edd4a51e0738953a4276aa84fa20.tar.gz rust-02ba216e3cb6edd4a51e0738953a4276aa84fa20.zip | |
Refactor and re-use BindingAnnotation
Diffstat (limited to 'compiler/rustc_borrowck/src')
| -rw-r--r-- | compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs b/compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs index dd9590016b9..e2db7f3ead1 100644 --- a/compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs +++ b/compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs @@ -367,7 +367,7 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> { if let Some(Node::Pat(pat)) = self.infcx.tcx.hir().find(upvar_hir_id) && let hir::PatKind::Binding( - hir::BindingAnnotation::Unannotated, + hir::BindingAnnotation::NONE, _, upvar_ident, _, |
