mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
fix(script_plugins): hir::BindingAnnotation::{Unannotated, Mutable}
have been replaced by associated constants
<https://github.com/rust-lang/rust/pull/101241>
This commit is contained in:
parent
ffe06c133b
commit
fbc1ae8533
1 changed files with 2 additions and 2 deletions
|
@ -360,8 +360,8 @@ impl<'a, 'tcx> visit::Visitor<'tcx> for FnDefVisitor<'a, 'tcx> {
|
||||||
// are implemented, the `Unannotated` case could cause false-positives.
|
// are implemented, the `Unannotated` case could cause false-positives.
|
||||||
// These should be fixable by adding an explicit `ref`.
|
// These should be fixable by adding an explicit `ref`.
|
||||||
match pat.kind {
|
match pat.kind {
|
||||||
hir::PatKind::Binding(hir::BindingAnnotation::Unannotated, ..) |
|
hir::PatKind::Binding(hir::BindingAnnotation::NONE, ..) |
|
||||||
hir::PatKind::Binding(hir::BindingAnnotation::Mutable, ..) => {
|
hir::PatKind::Binding(hir::BindingAnnotation::MUT, ..) => {
|
||||||
let ty = cx.typeck_results().pat_ty(pat);
|
let ty = cx.typeck_results().pat_ty(pat);
|
||||||
if is_unrooted_ty(self.symbols, cx, ty, self.in_new_function) {
|
if is_unrooted_ty(self.symbols, cx, ty, self.in_new_function) {
|
||||||
cx.lint(UNROOTED_MUST_ROOT, |lint| {
|
cx.lint(UNROOTED_MUST_ROOT, |lint| {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue