From 4f9fe856a25ab29345b90e7725509e9ee38a37be Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:41 +0200 Subject: Adding upstream version 1.69.0+dfsg1. Signed-off-by: Daniel Baumann --- vendor/icu_provider/src/key.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'vendor/icu_provider/src/key.rs') diff --git a/vendor/icu_provider/src/key.rs b/vendor/icu_provider/src/key.rs index 2f55e4d46..d4d6905c9 100644 --- a/vendor/icu_provider/src/key.rs +++ b/vendor/icu_provider/src/key.rs @@ -140,11 +140,6 @@ impl DataKeyPath { /// Gets the path as a static string slice. #[inline] pub const fn get(self) -> &'static str { - /// core::slice::from_raw_parts(a, b) = core::mem::transmute((a, b)) hack - /// ```compile_fail - /// const unsafe fn canary() { core::slice::from_raw_parts(0 as *const u8, 0); } - /// ``` - const _: () = (); unsafe { // Safe due to invariant that self.path is tagged correctly core::str::from_utf8_unchecked(core::mem::transmute(( @@ -624,7 +619,6 @@ fn test_key_to_string() { expected: "core/cardinal@65535", }, ] { - assert_eq!(cas.expected, cas.key.to_string()); writeable::assert_writeable_eq!(&cas.key, cas.expected); } } -- cgit v1.2.3