From 07d5e3e7bc113067b3480c67cc1cf466b62c142a 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 --- buck2_common/src/result.rs | 4 ---- rust-toolchain | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/buck2_common/src/result.rs b/buck2_common/src/result.rs index e18d49c27ad5..106c5d46a363 100644 --- a/buck2_common/src/result.rs +++ b/buck2_common/src/result.rs @@ -68,10 +68,6 @@ impl std::error::Error for SharedError { self.0.source() } - fn backtrace(&self) -> Option<&std::backtrace::Backtrace> { - Some(self.0.backtrace()) - } - fn cause(&self) -> Option<&dyn std::error::Error> { #[allow(deprecated)] self.0.cause() diff --git a/rust-toolchain b/rust-toolchain index 58286cc60688..8863be80c196 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1,3 +1,3 @@ [toolchain] -channel = "nightly-2022-06-25" +channel = "nightly-2022-08-06" components = ["llvm-tools-preview","rustc-dev"]