diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2020-03-23 14:13:54 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2020-03-24 12:08:30 +1100 |
| commit | 46c8a2c26eee8148e47237e90efde558d1374580 (patch) | |
| tree | 2e0e87354ab4de06b32b8eda5ca2bdea4558878f /src/librustc_session | |
| parent | a3782671cf1e190ffa470128a53329177b2c9a2f (diff) | |
Remove `-Z incremental`.
`-C incremental` was introduced over two years ago. `-Z incremental` was kept for transitioning, but it's been long enough now that it should be ok to remove it.
Diffstat (limited to 'src/librustc_session')
| -rw-r--r-- | src/librustc_session/config.rs | 29 | ||||
| -rw-r--r-- | src/librustc_session/options.rs | 2 |
2 files changed, 1 insertions, 30 deletions
diff --git a/src/librustc_session/config.rs b/src/librustc_session/config.rs index 6c4d70c09a3..663cfa223c7 100644 --- a/src/librustc_session/config.rs +++ b/src/librustc_session/config.rs @@ -1286,33 +1286,6 @@ fn check_thread_count(debugging_opts: &DebuggingOptions, error_format: ErrorOutp } } -fn select_incremental_path( - debugging_opts: &DebuggingOptions, - cg: &CodegenOptions, - error_format: ErrorOutputType, -) -> Option<PathBuf> { - match (&debugging_opts.incremental, &cg.incremental) { - (Some(path1), Some(path2)) => { - if path1 != path2 { - early_error( - error_format, - &format!( - "conflicting paths for `-Z incremental` and \ - `-C incremental` specified: {} versus {}", - path1, path2 - ), - ); - } else { - Some(path1) - } - } - (Some(path), None) => Some(path), - (None, Some(path)) => Some(path), - (None, None) => None, - } - .map(PathBuf::from) -} - fn collect_print_requests( cg: &mut CodegenOptions, dopts: &mut DebuggingOptions, @@ -1677,7 +1650,7 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options { check_thread_count(&debugging_opts, error_format); - let incremental = select_incremental_path(&debugging_opts, &cg, error_format); + let incremental = cg.incremental.as_ref().map(|m| PathBuf::from(m)); if debugging_opts.profile && incremental.is_some() { early_error( diff --git a/src/librustc_session/options.rs b/src/librustc_session/options.rs index f4d4c095368..72c720d09b0 100644 --- a/src/librustc_session/options.rs +++ b/src/librustc_session/options.rs @@ -789,8 +789,6 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options, "support compiling tests with panic=abort"), dep_tasks: bool = (false, parse_bool, [UNTRACKED], "print tasks that execute and the color their dep node gets (requires debug build)"), - incremental: Option<String> = (None, parse_opt_string, [UNTRACKED], - "enable incremental compilation (experimental)"), incremental_info: bool = (false, parse_bool, [UNTRACKED], "print high-level information about incremental reuse (or the lack thereof)"), incremental_verify_ich: bool = (false, parse_bool, [UNTRACKED], |
