From 5c6be06b9b1932e5b35f77a4bce8c115a62e2c62 Mon Sep 17 00:00:00 2001 From: Ruslan Sayfutdinov Date: Thu, 8 Sep 2022 10:31:57 -0700 Subject: [PATCH] update rust toolchain Summary: It includes this fix which was backported to 1.62.1. https://github.com/rust-lang/rust/pull/98950 `2022-08-06` is what will become 1.64.0. Changes are caused by: - Split TypeVisitable from TypeFoldable: https://github.com/rust-lang/rust/pull/98206 - Remove `fn backtrace` and replace with usages of provider API: https://github.com/rust-lang/rust/pull/99431 Reviewed By: stepancheg Differential Revision: D39277984 fbshipit-source-id: 5afc6c2b9e5ee3074ea0ede995868aef12cebf14 --- gazebo_lint/Cargo.toml | 1 + gazebo_lint/src/lib.rs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/gazebo_lint/Cargo.toml b/gazebo_lint/Cargo.toml index 0306193..99f1334 100644 --- a/gazebo_lint/Cargo.toml +++ b/gazebo_lint/Cargo.toml @@ -11,4 +11,5 @@ repository = "https://github.com/facebookincubator/gazebo_lint" plugin = true [dependencies] +rustversion = "1.0" smallvec = "1.4" diff --git a/gazebo_lint/src/lib.rs b/gazebo_lint/src/lib.rs index e1359f0..44f6c79 100644 --- a/gazebo_lint/src/lib.rs +++ b/gazebo_lint/src/lib.rs @@ -72,7 +72,10 @@ use rustc_lint::LateLintPass; use rustc_lint::Lint; use rustc_lint::LintContext; use rustc_lint::LintId; +#[rustversion::before(1.64)] use rustc_middle::ty::fold::TypeFoldable; +#[rustversion::since(1.64)] +use rustc_middle::ty::visit::TypeVisitable; use rustc_middle::ty::TyKind; use rustc_span::Span; use rustc_span::Symbol;