mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00

Use StableHasher + Hash64 for dep_tracking_hash This is similar to https://github.com/rust-lang/rust/pull/137095. We currently have a +/- 1 byte jitter in the size of dep graphs reported on perf.rust-lang.org. I think this fixes that jitter. When I introduced `Hash64`, I wired it through most of the compiler by making it an output of `StableHasher::finalize` then fixing the compile errors. I missed this case because the `u64` hash in this function is being produced by `DefaultHasher` instead. That seems pretty sketchy because the code seems confident that the hash needs to be stable, and we have a mechanism for stable hashing that we weren't using here.
25 lines
789 B
TOML
25 lines
789 B
TOML
[package]
|
|
name = "rustc_incremental"
|
|
version = "0.0.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
# tidy-alphabetical-start
|
|
rand = "0.8.4"
|
|
rustc_ast = { path = "../rustc_ast" }
|
|
rustc_data_structures = { path = "../rustc_data_structures" }
|
|
rustc_errors = { path = "../rustc_errors" }
|
|
rustc_fluent_macro = { path = "../rustc_fluent_macro" }
|
|
rustc_fs_util = { path = "../rustc_fs_util" }
|
|
rustc_graphviz = { path = "../rustc_graphviz" }
|
|
rustc_hashes = { path = "../rustc_hashes" }
|
|
rustc_hir = { path = "../rustc_hir" }
|
|
rustc_macros = { path = "../rustc_macros" }
|
|
rustc_middle = { path = "../rustc_middle" }
|
|
rustc_serialize = { path = "../rustc_serialize" }
|
|
rustc_session = { path = "../rustc_session" }
|
|
rustc_span = { path = "../rustc_span" }
|
|
thin-vec = "0.2.12"
|
|
tracing = "0.1"
|
|
# tidy-alphabetical-end
|