File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -720,7 +720,6 @@ fn test_debugging_options_tracking_hash() {
720
720
tracked ! ( mir_opt_level, Some ( 4 ) ) ;
721
721
tracked ! ( mutable_noalias, Some ( true ) ) ;
722
722
tracked ! ( new_llvm_pass_manager, Some ( true ) ) ;
723
- tracked ! ( no_codegen, true ) ;
724
723
tracked ! ( no_generate_arange_section, true ) ;
725
724
tracked ! ( no_link, true ) ;
726
725
tracked ! ( no_profiler_runtime, true ) ;
@@ -755,6 +754,16 @@ fn test_debugging_options_tracking_hash() {
755
754
tracked ! ( use_ctors_section, Some ( true ) ) ;
756
755
tracked ! ( verify_llvm_ir, true ) ;
757
756
tracked ! ( wasi_exec_model, Some ( WasiExecModel :: Reactor ) ) ;
757
+
758
+ macro_rules! tracked_no_crate_hash {
759
+ ( $name: ident, $non_default_value: expr) => {
760
+ opts = reference. clone( ) ;
761
+ assert_ne!( opts. debugging_opts. $name, $non_default_value) ;
762
+ opts. debugging_opts. $name = $non_default_value;
763
+ assert_non_crate_hash_different( & reference, & opts) ;
764
+ } ;
765
+ }
766
+ tracked_no_crate_hash ! ( no_codegen, true ) ;
758
767
}
759
768
760
769
#[ test]
Original file line number Diff line number Diff line change @@ -1137,7 +1137,7 @@ options! {
1137
1137
"the directory the NLL facts are dumped into (default: `nll-facts`)" ) ,
1138
1138
no_analysis: bool = ( false , parse_no_flag, [ UNTRACKED ] ,
1139
1139
"parse and expand the source, but run no analysis" ) ,
1140
- no_codegen: bool = ( false , parse_no_flag, [ TRACKED ] ,
1140
+ no_codegen: bool = ( false , parse_no_flag, [ TRACKED_NO_CRATE_HASH ] ,
1141
1141
"run all passes except codegen; no output" ) ,
1142
1142
no_generate_arange_section: bool = ( false , parse_no_flag, [ TRACKED ] ,
1143
1143
"omit DWARF address ranges that give faster lookups" ) ,
You can’t perform that action at this time.
0 commit comments