From fbc1ae8533ac5616f0d4c5400e6ee53c60574bb7 Mon Sep 17 00:00:00 2001 From: yvt Date: Thu, 13 Oct 2022 02:02:49 +0900 Subject: [PATCH] fix(script_plugins): `hir::BindingAnnotation::{Unannotated, Mutable}` have been replaced by associated constants --- components/script_plugins/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/script_plugins/lib.rs b/components/script_plugins/lib.rs index bad98739450..2f757e7184f 100644 --- a/components/script_plugins/lib.rs +++ b/components/script_plugins/lib.rs @@ -360,8 +360,8 @@ impl<'a, 'tcx> visit::Visitor<'tcx> for FnDefVisitor<'a, 'tcx> { // are implemented, the `Unannotated` case could cause false-positives. // These should be fixable by adding an explicit `ref`. match pat.kind { - hir::PatKind::Binding(hir::BindingAnnotation::Unannotated, ..) | - hir::PatKind::Binding(hir::BindingAnnotation::Mutable, ..) => { + hir::PatKind::Binding(hir::BindingAnnotation::NONE, ..) | + hir::PatKind::Binding(hir::BindingAnnotation::MUT, ..) => { let ty = cx.typeck_results().pat_ty(pat); if is_unrooted_ty(self.symbols, cx, ty, self.in_new_function) { cx.lint(UNROOTED_MUST_ROOT, |lint| {