File tree 3 files changed +12
-6
lines changed
3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " compiletest"
3
3
version = " 0.0.0"
4
- edition = " 2021 "
4
+ edition = " 2024 "
5
5
6
6
[lib ]
7
7
doctest = false
Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ pub(crate) fn configure_gdb(config: &Config) -> Option<Arc<Config>> {
40
40
//
41
41
// we should figure out how to lift this restriction! (run them all
42
42
// on different ports allocated dynamically).
43
- env:: set_var ( "RUST_TEST_THREADS" , "1" ) ;
43
+ //
44
+ // SAFETY: at this point we are still single-threaded.
45
+ unsafe { env:: set_var ( "RUST_TEST_THREADS" , "1" ) } ;
44
46
}
45
47
46
48
Some ( Arc :: new ( Config { debugger : Some ( Debugger :: Gdb ) , ..config. clone ( ) } ) )
Original file line number Diff line number Diff line change @@ -529,10 +529,14 @@ pub fn run_tests(config: Arc<Config>) {
529
529
}
530
530
// Prevent issue #21352 UAC blocking .exe containing 'patch' etc. on Windows
531
531
// If #11207 is resolved (adding manifest to .exe) this becomes unnecessary
532
- env:: set_var ( "__COMPAT_LAYER" , "RunAsInvoker" ) ;
533
-
534
- // Let tests know which target they're running as
535
- env:: set_var ( "TARGET" , & config. target ) ;
532
+ //
533
+ // SAFETY: at this point we're still single-threaded.
534
+ unsafe { env:: set_var ( "__COMPAT_LAYER" , "RunAsInvoker" ) } ;
535
+
536
+ // Let tests know which target they're running as.
537
+ //
538
+ // SAFETY: at this point we're still single-threaded.
539
+ unsafe { env:: set_var ( "TARGET" , & config. target ) } ;
536
540
537
541
let mut configs = Vec :: new ( ) ;
538
542
if let Mode :: DebugInfo = config. mode {
You can’t perform that action at this time.
0 commit comments