about summary refs log tree commit diff
path: root/example
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@tasking.com>2024-04-19 18:45:25 +0000
committerMaybe Waffle <waffle.lapkin@tasking.com>2024-04-19 18:45:25 +0000
commitd5273fff484b0a88f599636b15b4efe2266749c3 (patch)
tree933583cb779123f333b5c6834b8348b0ca97ae6e /example
parente243f8d0e3af98e3689e7e38b6ac0a83100d000f (diff)
downloadrust-d5273fff484b0a88f599636b15b4efe2266749c3.tar.gz
rust-d5273fff484b0a88f599636b15b4efe2266749c3.zip
Do intrinsic changes in `rustc_codegen_cranelift`
Diffstat (limited to 'example')
-rw-r--r--example/example.rs2
-rw-r--r--example/mini_core.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/example/example.rs b/example/example.rs
index 885e55bc764..1ef2aa5dd8e 100644
--- a/example/example.rs
+++ b/example/example.rs
@@ -149,7 +149,7 @@ pub fn array_as_slice(arr: &[u8; 3]) -> &[u8] {
     arr
 }
 
-pub unsafe fn use_ctlz_nonzero(a: u16) -> u16 {
+pub unsafe fn use_ctlz_nonzero(a: u16) -> u32 {
     intrinsics::ctlz_nonzero(a)
 }
 
diff --git a/example/mini_core.rs b/example/mini_core.rs
index e45c16ee280..5e535ff62e1 100644
--- a/example/mini_core.rs
+++ b/example/mini_core.rs
@@ -627,7 +627,7 @@ pub mod intrinsics {
         pub fn min_align_of_val<T: ?::Sized>(val: *const T) -> usize;
         pub fn copy<T>(src: *const T, dst: *mut T, count: usize);
         pub fn transmute<T, U>(e: T) -> U;
-        pub fn ctlz_nonzero<T>(x: T) -> T;
+        pub fn ctlz_nonzero<T>(x: T) -> u32;
         #[rustc_safe_intrinsic]
         pub fn needs_drop<T: ?::Sized>() -> bool;
         #[rustc_safe_intrinsic]