check -Z query-dep-graph is enabled if -Z dump-dep-graph (#106736)
This commit is contained in:
parent
d12412c90f
commit
2c5583efbd
3 changed files with 13 additions and 0 deletions
|
@ -2459,6 +2459,11 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
|
|||
|
||||
let pretty = parse_pretty(&unstable_opts, error_format);
|
||||
|
||||
// query-dep-graph is required if dump-dep-graph is given #106736
|
||||
if unstable_opts.dump_dep_graph && !unstable_opts.query_dep_graph {
|
||||
early_error(error_format, "can't dump dependency graph without `-Z query-dep-graph`");
|
||||
}
|
||||
|
||||
// Try to find a directory containing the Rust `src`, for more details see
|
||||
// the doc comment on the `real_rust_source_base_dir` field.
|
||||
let tmp_buf;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue