diff options
| author | Laurențiu Nicola <lnicola@dend.ro> | 2025-01-07 17:57:53 +0200 |
|---|---|---|
| committer | Laurențiu Nicola <lnicola@dend.ro> | 2025-01-07 17:57:53 +0200 |
| commit | e103ab16084dc735b8db6b90186cd7b6967402ee (patch) | |
| tree | f2f3317a4a2031c7cc1a141c5703166e6fa1d107 /compiler/rustc_data_structures/src | |
| parent | aa1ef0a432100170d07b89f487e18fc2673c40ba (diff) | |
| parent | fb546ee09b226bc4dd4b712d35a372d923c4fa54 (diff) | |
| download | rust-e103ab16084dc735b8db6b90186cd7b6967402ee.tar.gz rust-e103ab16084dc735b8db6b90186cd7b6967402ee.zip | |
Merge from rust-lang/rust
Diffstat (limited to 'compiler/rustc_data_structures/src')
| -rw-r--r-- | compiler/rustc_data_structures/src/packed.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_data_structures/src/packed.rs b/compiler/rustc_data_structures/src/packed.rs index f54b12b5b53..c8921536530 100644 --- a/compiler/rustc_data_structures/src/packed.rs +++ b/compiler/rustc_data_structures/src/packed.rs @@ -18,6 +18,13 @@ impl Pu128 { } } +impl From<Pu128> for u128 { + #[inline] + fn from(value: Pu128) -> Self { + value.get() + } +} + impl From<u128> for Pu128 { #[inline] fn from(value: u128) -> Self { |
