Auto merge of #111345 - jyn514:cfg-release-caching, r=cjgillot,est31
Only depend on CFG_VERSION in rustc_interface This avoids having to rebuild the whole compiler on each commit when `omit-git-hash = false`. cc https://github.com/rust-lang/rust/issues/76720 - this won't fix it, and I'm not suggesting we turn this on by default, but it will make it less painful for people who do have `omit-git-hash` on as a workaround.
This commit is contained in:
commit
c9dc55d05c
24 changed files with 97 additions and 71 deletions
|
@ -10,13 +10,13 @@ fn def_path_hash_depends_on_crate_id() {
|
|||
// the crate-id of the defining crate. This is a desirable property
|
||||
// because the crate-id can be more easily changed than the DefPath
|
||||
// of an item, so, in the case of a crate-local DefPathHash collision,
|
||||
// the user can simply "role the dice again" for all DefPathHashes in
|
||||
// the user can simply "roll the dice again" for all DefPathHashes in
|
||||
// the crate by changing the crate disambiguator (e.g. via bumping the
|
||||
// crate's version number).
|
||||
|
||||
create_session_if_not_set_then(Edition::Edition2024, |_| {
|
||||
let id0 = StableCrateId::new(Symbol::intern("foo"), false, vec!["1".to_string()]);
|
||||
let id1 = StableCrateId::new(Symbol::intern("foo"), false, vec!["2".to_string()]);
|
||||
let id0 = StableCrateId::new(Symbol::intern("foo"), false, vec!["1".to_string()], "");
|
||||
let id1 = StableCrateId::new(Symbol::intern("foo"), false, vec!["2".to_string()], "");
|
||||
|
||||
let h0 = mk_test_hash(id0);
|
||||
let h1 = mk_test_hash(id1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue