File tree 2 files changed +5
-4
lines changed
compiler/rustc_codegen_gcc/example
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -153,9 +153,10 @@ fn array_as_slice(arr: &[u8; 3]) -> &[u8] {
153
153
arr
154
154
}
155
155
156
- unsafe fn use_ctlz_nonzero ( a : u16 ) -> u16 {
157
- intrinsics:: ctlz_nonzero ( a)
158
- }
156
+ // FIXME: fix the intrinsic implementation to work with the new ->u32 signature
157
+ // unsafe fn use_ctlz_nonzero(a: u16) -> u32 {
158
+ // intrinsics::ctlz_nonzero(a)
159
+ // }
159
160
160
161
fn ptr_as_usize ( ptr : * const u8 ) -> usize {
161
162
ptr as usize
Original file line number Diff line number Diff line change @@ -593,7 +593,7 @@ pub mod intrinsics {
593
593
pub fn min_align_of_val < T : ?Sized > ( val : * const T ) -> usize ;
594
594
pub fn copy < T > ( src : * const T , dst : * mut T , count : usize ) ;
595
595
pub fn transmute < T , U > ( e : T ) -> U ;
596
- pub fn ctlz_nonzero < T > ( x : T ) -> T ;
596
+ pub fn ctlz_nonzero < T > ( x : T ) -> u32 ;
597
597
#[ rustc_safe_intrinsic]
598
598
pub fn needs_drop < T : ?Sized > ( ) -> bool ;
599
599
#[ rustc_safe_intrinsic]
You can’t perform that action at this time.
0 commit comments