Only enable relative span hashing on nightly.
This commit is contained in:
parent
65f342daea
commit
40c8165395
5 changed files with 12 additions and 3 deletions
|
@ -787,6 +787,12 @@ impl Options {
|
|||
pub fn get_symbol_mangling_version(&self) -> SymbolManglingVersion {
|
||||
self.cg.symbol_mangling_version.unwrap_or(SymbolManglingVersion::Legacy)
|
||||
}
|
||||
|
||||
#[allow(rustc::bad_opt_access)]
|
||||
pub fn incremental_relative_spans(&self) -> bool {
|
||||
self.unstable_opts.incremental_relative_spans
|
||||
|| (self.unstable_features.is_nightly_build() && self.incremental.is_some())
|
||||
}
|
||||
}
|
||||
|
||||
impl UnstableOptions {
|
||||
|
|
|
@ -1338,6 +1338,9 @@ options! {
|
|||
incremental_info: bool = (false, parse_bool, [UNTRACKED],
|
||||
"print high-level information about incremental reuse (or the lack thereof) \
|
||||
(default: no)"),
|
||||
#[rustc_lint_opt_deny_field_access("use `Session::incremental_relative_spans` instead of this field")]
|
||||
incremental_relative_spans: bool = (false, parse_bool, [TRACKED],
|
||||
"hash spans relative to their parent item for incr. comp. (default: no)"),
|
||||
incremental_verify_ich: bool = (false, parse_bool, [UNTRACKED],
|
||||
"verify incr. comp. hashes of green query instances (default: no)"),
|
||||
inline_in_all_cgus: Option<bool> = (None, parse_opt_bool, [TRACKED],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue