diff options
author | David Tolnay <dtolnay@gmail.com> | 2023-01-07 12:37:15 -0800 |
---|---|---|
committer | David Tolnay <dtolnay@gmail.com> | 2023-01-07 12:37:18 -0800 |
commit | fe16a5dea3a3f2995cf41316c88f2c8961f8f3e7 (patch) | |
tree | 192fd329ca4b61e73153ba2da5eab7b5fa56c4c3 /build.rs | |
parent | 1f3627267ad224f715a4f3801d44f56f801405ff (diff) | |
download | cxx-fe16a5dea3a3f2995cf41316c88f2c8961f8f3e7.tar.gz |
Raise minimum rustc to 1.60
Diffstat (limited to 'build.rs')
-rw-r--r-- | build.rs | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -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"); - } } } |