about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-12-28 11:09:28 +0000
committerbors <bors@rust-lang.org>2024-12-28 11:09:28 +0000
commit4e0bc490c60d3588f3ec0aa2eee2cf0696c7c333 (patch)
treedb14ab02283deefcab7c67ad63dddebf1d5b5a2a /compiler/rustc_data_structures/src
parent8b3f7ac5262531aefa227f90387cf2eb34aae800 (diff)
parente32ec45c02d890e46e55af86163a6d1ba10a4b41 (diff)
downloadrust-4e0bc490c60d3588f3ec0aa2eee2cf0696c7c333.tar.gz
rust-4e0bc490c60d3588f3ec0aa2eee2cf0696c7c333.zip
Auto merge of #131244 - clubby789:match-branches-unreachable, r=DianQK
Consider empty-unreachable otherwise branches in MatchBranchSimplification

Fixes #131219
Diffstat (limited to 'compiler/rustc_data_structures/src')
-rw-r--r--compiler/rustc_data_structures/src/packed.rs7
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 {