about summary refs log tree commit diff
path: root/build_system
diff options
context:
space:
mode:
authorantoyo <antoyo@users.noreply.github.com>2025-05-09 07:57:24 -0400
committerGitHub <noreply@github.com>2025-05-09 07:57:24 -0400
commitcfe88fa8318ecf6aa2947a6314c0dcdc830e7de0 (patch)
treedcfda890a817f4405d112aa133f48a073e9929f9 /build_system
parent633ecc82d604270f875efa4fd98d7279d3db870c (diff)
parent390fc73ae737ef99fa109add85bbf60e53f1a983 (diff)
Merge pull request #663 from GuillaumeGomez/edition-2024
Switch to 2024 edition and remove `let_chains` feature
Diffstat (limited to 'build_system')
-rw-r--r--build_system/Cargo.toml2
-rw-r--r--build_system/src/main.rs4
-rw-r--r--build_system/src/utils.rs2
3 files changed, 5 insertions, 3 deletions
diff --git a/build_system/Cargo.toml b/build_system/Cargo.toml
index d2600ed5a03..540d82369fd 100644
--- a/build_system/Cargo.toml
+++ b/build_system/Cargo.toml
@@ -1,7 +1,7 @@
 [package]
 name = "y"
 version = "0.1.0"
-edition = "2021"
+edition = "2024"
 
 [dependencies]
 boml = "0.3.1"
diff --git a/build_system/src/main.rs b/build_system/src/main.rs
index 39361718306..c70b00e09ae 100644
--- a/build_system/src/main.rs
+++ b/build_system/src/main.rs
@@ -60,7 +60,9 @@ pub enum Command {
 
 fn main() {
     if env::var("RUST_BACKTRACE").is_err() {
-        env::set_var("RUST_BACKTRACE", "1");
+        unsafe {
+            env::set_var("RUST_BACKTRACE", "1");
+        }
     }
 
     let command = match env::args().nth(1).as_deref() {
diff --git a/build_system/src/utils.rs b/build_system/src/utils.rs
index 401c23948e5..ca177a5feb8 100644
--- a/build_system/src/utils.rs
+++ b/build_system/src/utils.rs
@@ -10,7 +10,7 @@ use std::path::{Path, PathBuf};
 use std::process::{Command, ExitStatus, Output};
 
 #[cfg(unix)]
-extern "C" {
+unsafe extern "C" {
     fn raise(signal: c_int) -> c_int;
 }