Skip to content

Commit 7f2f0d2

Browse files
Update tests to 2024 edition
1 parent dcfd5c3 commit 7f2f0d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/lang_tests_common.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ pub fn main_inner(profile: Profile) {
4242
.expect("failed to get absolute path of `gcc-path`")
4343
.display()
4444
.to_string();
45-
env::set_var("LD_LIBRARY_PATH", gcc_path);
45+
unsafe {
46+
env::set_var("LD_LIBRARY_PATH", gcc_path);
47+
}
4648

4749
fn rust_filter(path: &Path) -> bool {
4850
path.is_file() && path.extension().expect("extension").to_str().expect("to_str") == "rs"

0 commit comments

Comments
 (0)