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 16422db commit b899dbcCopy full SHA for b899dbc
compiler/rustc_session/src/options.rs
@@ -663,7 +663,13 @@ mod parse {
663
true
664
}
665
Some(i) => {
666
- *slot = i;
+ // 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
+ }
673
674
675
None => false,
0 commit comments