File tree 1 file changed +7
-11
lines changed
compiler/rustc_session/src
1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -2123,16 +2123,6 @@ fn should_override_cgus_and_disable_thinlto(
2123
2123
( disable_local_thinlto, codegen_units)
2124
2124
}
2125
2125
2126
- fn check_thread_count ( handler : & EarlyErrorHandler , unstable_opts : & UnstableOptions ) {
2127
- if unstable_opts. threads == 0 {
2128
- handler. early_error ( "value for threads must be a positive non-zero integer" ) ;
2129
- }
2130
-
2131
- if unstable_opts. threads > 1 && unstable_opts. fuel . is_some ( ) {
2132
- handler. early_error ( "optimization fuel is incompatible with multiple threads" ) ;
2133
- }
2134
- }
2135
-
2136
2126
fn collect_print_requests (
2137
2127
handler : & EarlyErrorHandler ,
2138
2128
cg : & mut CodegenOptions ,
@@ -2642,7 +2632,13 @@ pub fn build_session_options(
2642
2632
let ( disable_local_thinlto, mut codegen_units) =
2643
2633
should_override_cgus_and_disable_thinlto ( handler, & output_types, matches, cg. codegen_units ) ;
2644
2634
2645
- check_thread_count ( handler, & unstable_opts) ;
2635
+ if unstable_opts. threads == 0 {
2636
+ handler. early_error ( "value for threads must be a positive non-zero integer" ) ;
2637
+ }
2638
+
2639
+ if unstable_opts. threads > 1 && unstable_opts. fuel . is_some ( ) {
2640
+ handler. early_error ( "optimization fuel is incompatible with multiple threads" ) ;
2641
+ }
2646
2642
2647
2643
let incremental = cg. incremental . as_ref ( ) . map ( PathBuf :: from) ;
2648
2644
You can’t perform that action at this time.
0 commit comments