We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b899dbc commit 818099cCopy full SHA for 818099c
compiler/rustc_session/src/options.rs
@@ -665,11 +665,7 @@ mod parse {
665
Some(i) => {
666
// We want to cap the number of threads here to avoid large numbers like 999999 and compiler panics.
667
// This solution was suggested here https://github.com/rust-lang/rust/issues/117638#issuecomment-1800925067
668
- if i <= 256 {
669
- *slot = i;
670
- } else {
671
- *slot = 256;
672
- }
+ *slot = i.min(256);
673
true
674
}
675
None => false,
0 commit comments