Skip to content

Commit 164e608

Browse files
committed
Enable -Zthreads=sync by default
1 parent f28ac76 commit 164e608

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compiler/rustc_session/src/options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ pub mod parse {
11051105
// We want to cap the number of threads here to avoid large numbers like 999999 and compiler panics.
11061106
// This solution was suggested here https://github.com/rust-lang/rust/issues/117638#issuecomment-1800925067
11071107
let n = n.min(MAX_THREADS_CAP);
1108-
*slot = (n > 1).then_some(n); // Enable synchronization if we're using more than one thread.
1108+
*slot = Some(n);
11091109
true
11101110
}
11111111

0 commit comments

Comments
 (0)