1
Fork 0

Enable incremental-relative-spans by default.

This commit is contained in:
Camille GILLOT 2023-09-07 20:13:57 +00:00
parent 70c7e4d21c
commit 717dc1ce21
5 changed files with 3 additions and 12 deletions

View file

@ -1206,7 +1206,7 @@ pub(super) fn crate_hash(tcx: TyCtxt<'_>, _: LocalCrate) -> Svh {
upstream_crates.hash_stable(&mut hcx, &mut stable_hasher);
source_file_names.hash_stable(&mut hcx, &mut stable_hasher);
debugger_visualizers.hash_stable(&mut hcx, &mut stable_hasher);
if tcx.sess.opts.incremental_relative_spans() {
if tcx.sess.opts.incremental.is_some() {
let definitions = tcx.untracked().definitions.freeze();
let mut owner_spans: Vec<_> = krate
.owners