From e2ef45a06ee09a5160ffc241ea569db03b9be153 Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Wed, 25 May 2022 21:01:04 -0400 Subject: [PATCH] rust: Update MSRV to 1.52 The bump of minimum rust version is required by some of the updated dependencies. Closes #2802. --- .github/workflows/rust-tests.yml | 2 +- rust/lib/src/lib.rs | 3 +-- rust/taskchampion/src/lib.rs | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rust-tests.yml b/.github/workflows/rust-tests.yml index 206eb88d4..3fb7bf427 100644 --- a/.github/workflows/rust-tests.yml +++ b/.github/workflows/rust-tests.yml @@ -13,7 +13,7 @@ jobs: matrix: rust: # MSRV; most not be higher than the clippy rust version in checks.yml - - "1.47" + - "1.52" - "stable" os: - ubuntu-latest diff --git a/rust/lib/src/lib.rs b/rust/lib/src/lib.rs index 69b83d64b..ee48ce969 100644 --- a/rust/lib/src/lib.rs +++ b/rust/lib/src/lib.rs @@ -1,5 +1,4 @@ -// Not compatible with the MSRV -// #![warn(unsafe_op_in_unsafe_fn)] +#![warn(unsafe_op_in_unsafe_fn)] #![allow(unused_unsafe)] // Not working yet in stable - https://github.com/rust-lang/rust-clippy/issues/8020 // #![warn(clippy::undocumented_unsafe_blocks)] diff --git a/rust/taskchampion/src/lib.rs b/rust/taskchampion/src/lib.rs index 63e5c20ea..058620e68 100644 --- a/rust/taskchampion/src/lib.rs +++ b/rust/taskchampion/src/lib.rs @@ -39,9 +39,9 @@ Users can define their own server impelementations. See the [TaskChampion Book](http://taskchampion.github.com/taskchampion) for more information about the design and usage of the tool. -# Minimum Supported Rust Version +# Minimum Supported Rust Version (MSRV) -This crate supports Rust version 1.47 and higher. +This crate supports Rust version 1.52 and higher. */