File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 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() {
720720 tracked ! ( mir_opt_level, Some ( 4 ) ) ;
721721 tracked ! ( mutable_noalias, Some ( true ) ) ;
722722 tracked ! ( new_llvm_pass_manager, Some ( true ) ) ;
723- tracked ! ( no_codegen, true ) ;
724723 tracked ! ( no_generate_arange_section, true ) ;
725724 tracked ! ( no_link, true ) ;
726725 tracked ! ( osx_rpath_install_name, true ) ;
@@ -755,6 +754,16 @@ fn test_debugging_options_tracking_hash() {
755754 tracked ! ( use_ctors_section, Some ( true ) ) ;
756755 tracked ! ( verify_llvm_ir, true ) ;
757756 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 ) ;
758767}
759768
760769#[ test]
Original file line number Diff line number Diff line change @@ -1148,7 +1148,7 @@ options! {
11481148 "the directory the NLL facts are dumped into (default: `nll-facts`)" ) ,
11491149 no_analysis: bool = ( false , parse_no_flag, [ UNTRACKED ] ,
11501150 "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 ] ,
11521152 "run all passes except codegen; no output" ) ,
11531153 no_generate_arange_section: bool = ( false , parse_no_flag, [ TRACKED ] ,
11541154 "omit DWARF address ranges that give faster lookups" ) ,
You can’t perform that action at this time.
0 commit comments