From fe16a5dea3a3f2995cf41316c88f2c8961f8f3e7 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 7 Jan 2023 12:37:15 -0800 Subject: Raise minimum rustc to 1.60 --- build.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'build.rs') diff --git a/build.rs b/build.rs index a953639a..9158b1c8 100644 --- a/build.rs +++ b/build.rs @@ -21,19 +21,13 @@ fn main() { } if let Some(rustc) = rustc_version() { - if rustc.minor < 48 { - println!("cargo:warning=The cxx crate requires a rustc version 1.48.0 or newer."); + if rustc.minor < 60 { + println!("cargo:warning=The cxx crate requires a rustc version 1.60.0 or newer."); println!( "cargo:warning=You appear to be building with: {}", rustc.version, ); } - - if rustc.minor < 52 { - // #![deny(unsafe_op_in_unsafe_fn)]. - // https://github.com/rust-lang/rust/issues/71668 - println!("cargo:rustc-cfg=no_unsafe_op_in_unsafe_fn_lint"); - } } } -- cgit v1.2.3