File tree 3 files changed +13
-0
lines changed
compiler/rustc_session/src
3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -2459,6 +2459,11 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
2459
2459
2460
2460
let pretty = parse_pretty ( & unstable_opts, error_format) ;
2461
2461
2462
+ // query-dep-graph is required if dump-dep-graph is given #106736
2463
+ if unstable_opts. dump_dep_graph && !unstable_opts. query_dep_graph {
2464
+ early_error ( error_format, "can't dump dependency graph without `-Z query-dep-graph`" ) ;
2465
+ }
2466
+
2462
2467
// Try to find a directory containing the Rust `src`, for more details see
2463
2468
// the doc comment on the `real_rust_source_base_dir` field.
2464
2469
let tmp_buf;
Original file line number Diff line number Diff line change
1
+ // Test dump-dep-graph requires query-dep-graph enabled
2
+
3
+ // incremental
4
+ // compile-flags: -Z dump-dep-graph
5
+
6
+ fn main ( ) { }
Original file line number Diff line number Diff line change
1
+ error: can't dump dependency graph without `-Z query-dep-graph`
2
+
You can’t perform that action at this time.
0 commit comments