Skip to content

Commit 4cb68b2

Browse files
diliopfacebook-github-bot
authored andcommitted
update to Rust 1.65.0
Summary: Added `fbcode` symlinks for `platform010` & `platform010-aarch64` and addressed the following fixes: * Account for stabilized [`#![feature(backtrace)]`](rust-lang/rust#99573) and [`#![feature(generic_associated_types)]`](rust-lang/rust#99573) * Account for removal of [`#![feature(result_into_ok_or_err)]`](rust-lang/rust#100604) * Account for migration of [`std::io::ReadBuf` to `std::io::BorrowBuf|BorrowCursor`](rust-lang/rust#97015) * Account for [`Error` trait move into core](rust-lang/rust#99917) * Account for `#[warn(non_camel_case_types)]` * Various function signature, lifetime requirement changes and lint fixes Reviewed By: zertosh Differential Revision: D40923615 fbshipit-source-id: f7ac2828d74edeae39aae517172207b0ee998a59
1 parent d545ed8 commit 4cb68b2

File tree

7 files changed

+0
-25
lines changed

7 files changed

+0
-25
lines changed

eden/mononoke/land_service/src/main.rs

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
* GNU General Public License version 2.
66
*/
77

8-
#![feature(backtrace)]
9-
108
use std::fs::File;
119
use std::io::Write;
1210
use std::sync::atomic::AtomicBool;

eden/mononoke/megarepo_api/megarepo_config/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* GNU General Public License version 2.
66
*/
77

8-
#![feature(backtrace)]
98
#![cfg_attr(not(fbcode_build), allow(unused_crate_dependencies))]
109

1110
use std::path::Path;

eden/mononoke/megarepo_api/megarepo_error/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* GNU General Public License version 2.
66
*/
77

8-
#![feature(backtrace)]
98
#![feature(error_generic_member_access)]
109
#![feature(provide_any)]
1110

eden/mononoke/mononoke_api/src/errors.rs

-18
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
*/
77

88
use std::any::Demand;
9-
use std::any::Provider;
109
use std::backtrace::Backtrace;
1110
use std::convert::Infallible;
1211
use std::error::Error as StdError;
@@ -90,23 +89,6 @@ pub enum MononokeError {
9089
InternalError(#[source] InternalError),
9190
}
9291

93-
impl Provider for MononokeError {
94-
fn provide<'a>(&'a self, demand: &mut Demand<'a>) {
95-
match self {
96-
Self::InvalidRequest(..)
97-
| Self::MergeConflicts { .. }
98-
| Self::PushrebaseConflicts(..)
99-
| Self::ServicePermissionDenied { .. }
100-
| Self::HookFailure(..)
101-
| Self::NotAvailable(..)
102-
| Self::AuthorizationError(..) => {}
103-
Self::InternalError(error) => {
104-
demand.provide_ref::<Backtrace>(error.backtrace());
105-
}
106-
}
107-
}
108-
}
109-
11092
impl From<Error> for MononokeError {
11193
fn from(e: Error) -> Self {
11294
MononokeError::InternalError(InternalError(Arc::new(e)))

eden/mononoke/mononoke_api/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* GNU General Public License version 2.
66
*/
77

8-
#![feature(backtrace)]
98
#![feature(error_generic_member_access)]
109
#![feature(provide_any)]
1110

eden/mononoke/reachabilityindex/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* GNU General Public License version 2.
66
*/
77

8-
#![feature(backtrace)]
98
#![feature(error_generic_member_access)]
109
#![feature(provide_any)]
1110

eden/mononoke/scs_server/src/main.rs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* GNU General Public License version 2.
66
*/
77

8-
#![feature(backtrace)]
98
#![type_length_limit = "2097152"]
109

1110
use std::fs::File;

0 commit comments

Comments
 (0)