diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-05-07 16:50:47 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-05-07 17:12:22 +0200 |
| commit | 7f2f0d2ec13f22eb3057b309d39de134d0fd2848 (patch) | |
| tree | 3a55a83eb5f720e73ac7d2610331b9642ff46cda | |
| parent | dcfd5c30d4bd81b08f893ca245e02359b9210d25 (diff) | |
| download | rust-7f2f0d2ec13f22eb3057b309d39de134d0fd2848.tar.gz rust-7f2f0d2ec13f22eb3057b309d39de134d0fd2848.zip | |
Update tests to 2024 edition
| -rw-r--r-- | tests/lang_tests_common.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lang_tests_common.rs b/tests/lang_tests_common.rs index d5a0d71c4b2..f0a9e72f2ea 100644 --- a/tests/lang_tests_common.rs +++ b/tests/lang_tests_common.rs @@ -42,7 +42,9 @@ pub fn main_inner(profile: Profile) { .expect("failed to get absolute path of `gcc-path`") .display() .to_string(); - env::set_var("LD_LIBRARY_PATH", gcc_path); + unsafe { + env::set_var("LD_LIBRARY_PATH", gcc_path); + } fn rust_filter(path: &Path) -> bool { path.is_file() && path.extension().expect("extension").to_str().expect("to_str") == "rs" |
