about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-29 14:37:40 +0000
committerbors <bors@rust-lang.org>2023-12-29 14:37:40 +0000
commitdc450f9dcb243368275598b506d04a54d7019a42 (patch)
tree76672a94f847c4d40a64a398c8ce459c5f3c7a69 /compiler/rustc_data_structures/src
parent1a7e97f1ef3ce44f060f338c79d7dcbfb91bbc8a (diff)
parent821920b2a3bb63a76233e8c1862409d51d85a5e9 (diff)
downloadrust-dc450f9dcb243368275598b506d04a54d7019a42.tar.gz
rust-dc450f9dcb243368275598b506d04a54d7019a42.zip
Auto merge of #119259 - cjgillot:single-crate-id, r=Mark-Simulacrum
Only store StableCrateId once in DefPathTable.

https://github.com/rust-lang/rust/pull/119238 made me think of this.

cc `@Mark-Simulacrum`
Diffstat (limited to 'compiler/rustc_data_structures/src')
-rw-r--r--compiler/rustc_data_structures/src/hashes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/hashes.rs b/compiler/rustc_data_structures/src/hashes.rs
index ad068cdbc98..291ee5bbe26 100644
--- a/compiler/rustc_data_structures/src/hashes.rs
+++ b/compiler/rustc_data_structures/src/hashes.rs
@@ -25,7 +25,7 @@ impl Hash64 {
     pub const ZERO: Hash64 = Hash64 { inner: 0 };
 
     #[inline]
-    pub(crate) fn new(n: u64) -> Self {
+    pub fn new(n: u64) -> Self {
         Self { inner: n }
     }