diff options
| author | bors <bors@rust-lang.org> | 2023-12-29 14:37:40 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-29 14:37:40 +0000 |
| commit | dc450f9dcb243368275598b506d04a54d7019a42 (patch) | |
| tree | 76672a94f847c4d40a64a398c8ce459c5f3c7a69 /compiler/rustc_data_structures/src | |
| parent | 1a7e97f1ef3ce44f060f338c79d7dcbfb91bbc8a (diff) | |
| parent | 821920b2a3bb63a76233e8c1862409d51d85a5e9 (diff) | |
| download | rust-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.rs | 2 |
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 } } |
