Skip to content

Commit fbc1ae8

Browse files
committed
fix(script_plugins): hir::BindingAnnotation::{Unannotated, Mutable} have been replaced by associated constants
<rust-lang/rust#101241>
1 parent ffe06c1 commit fbc1ae8

File tree

1 file changed

+2
-2
lines changed
  • components/script_plugins

1 file changed

+2
-2
lines changed

components/script_plugins/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,8 @@ impl<'a, 'tcx> visit::Visitor<'tcx> for FnDefVisitor<'a, 'tcx> {
360360
// are implemented, the `Unannotated` case could cause false-positives.
361361
// These should be fixable by adding an explicit `ref`.
362362
match pat.kind {
363-
hir::PatKind::Binding(hir::BindingAnnotation::Unannotated, ..) |
364-
hir::PatKind::Binding(hir::BindingAnnotation::Mutable, ..) => {
363+
hir::PatKind::Binding(hir::BindingAnnotation::NONE, ..) |
364+
hir::PatKind::Binding(hir::BindingAnnotation::MUT, ..) => {
365365
let ty = cx.typeck_results().pat_ty(pat);
366366
if is_unrooted_ty(self.symbols, cx, ty, self.in_new_function) {
367367
cx.lint(UNROOTED_MUST_ROOT, |lint| {

0 commit comments

Comments
 (0)