File tree Expand file tree Collapse file tree
compiler/rustc_middle/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -566,6 +566,9 @@ rustc_queries! {
566566
567567 query lints_that_dont_need_to_run( _: ( ) ) -> & ' tcx UnordSet <LintId > {
568568 arena_cache
569+ // This depends on the lint store, which includes internal lints when the
570+ // untracked `-Zunstable-options` flag is set.
571+ eval_always
569572 desc { "Computing all lints that are explicitly enabled or with a default level greater than Allow" }
570573 }
571574
Original file line number Diff line number Diff line change 11// Test that changing a tracked commandline argument invalidates
22// the cache while changing an untracked one doesn't.
33
4- //@ revisions:rpass1 rpass2 rpass3 rpass4
4+ //@ revisions:rpass1 rpass2 rpass3 rpass4 rpass5
55//@ compile-flags: -Z query-dep-graph
66
77#![ feature( rustc_attrs) ]
88
99#![ rustc_partition_codegened( module="commandline_args" , cfg="rpass2" ) ]
1010#![ rustc_partition_reused( module="commandline_args" , cfg="rpass3" ) ]
1111#![ rustc_partition_codegened( module="commandline_args" , cfg="rpass4" ) ]
12+ #![ rustc_partition_reused( module="commandline_args" , cfg="rpass5" ) ]
1213
1314// Between revisions 1 and 2, we are changing the debuginfo-level, which should
1415// invalidate the cache. Between revisions 2 and 3, we are adding `--diagnostic-width`
1819//@[rpass2] compile-flags: -C debuginfo=2
1920//@[rpass3] compile-flags: -C debuginfo=2 --diagnostic-width=80
2021//@[rpass4] compile-flags: -C debuginfo=2 --diagnostic-width=80 --remap-path-prefix=/home/bors/r=src
22+ // Regression test for https://github.com/rust-lang/rust/issues/156182.
23+ // `-Zunstable-options` enables internal lints, so the lint store changes without
24+ // changing the incremental command-line hash.
25+ //@[rpass5] compile-flags: -C debuginfo=2 --diagnostic-width=80 --remap-path-prefix=/home/bors/r=src -Zunstable-options
2126//@ ignore-backends: gcc
2227
2328pub fn main ( ) {
You can’t perform that action at this time.
0 commit comments