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 ! ( osx_rpath_install_name, 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 @@ -1148,7 +1148,7 @@ options! {
1148
1148
"the directory the NLL facts are dumped into (default: `nll-facts`)" ) ,
1149
1149
no_analysis: bool = ( false , parse_no_flag, [ UNTRACKED ] ,
1150
1150
"parse and expand the source, but run no analysis" ) ,
1151
- no_codegen: bool = ( false , parse_no_flag, [ TRACKED ] ,
1151
+ no_codegen: bool = ( false , parse_no_flag, [ TRACKED_NO_CRATE_HASH ] ,
1152
1152
"run all passes except codegen; no output" ) ,
1153
1153
no_generate_arange_section: bool = ( false , parse_no_flag, [ TRACKED ] ,
1154
1154
"omit DWARF address ranges that give faster lookups" ) ,
You can’t perform that action at this time.
0 commit comments