Fixup 2 ui tests using changed intrinsics
This commit is contained in:
parent
c2046c4b09
commit
4b6bbcbaa3
@ -16,7 +16,7 @@
|
|||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
pub struct Foo(i64);
|
pub struct Foo(i64);
|
||||||
|
|
||||||
pub fn test_cttz(v: Foo) -> Foo {
|
pub fn test_cttz(v: Foo) -> u32 {
|
||||||
intrinsics::cttz(v)
|
intrinsics::cttz(v)
|
||||||
//~^ ERROR `cttz` intrinsic: expected basic integer type, found `Foo`
|
//~^ ERROR `cttz` intrinsic: expected basic integer type, found `Foo`
|
||||||
}
|
}
|
||||||
|
@ -6,13 +6,13 @@
|
|||||||
mod rusti {
|
mod rusti {
|
||||||
extern "rust-intrinsic" {
|
extern "rust-intrinsic" {
|
||||||
#[rustc_safe_intrinsic]
|
#[rustc_safe_intrinsic]
|
||||||
pub fn ctpop<T>(x: T) -> T;
|
pub fn ctpop<T>(x: T) -> u32;
|
||||||
#[rustc_safe_intrinsic]
|
#[rustc_safe_intrinsic]
|
||||||
pub fn ctlz<T>(x: T) -> T;
|
pub fn ctlz<T>(x: T) -> u32;
|
||||||
pub fn ctlz_nonzero<T>(x: T) -> T;
|
pub fn ctlz_nonzero<T>(x: T) -> u32;
|
||||||
#[rustc_safe_intrinsic]
|
#[rustc_safe_intrinsic]
|
||||||
pub fn cttz<T>(x: T) -> T;
|
pub fn cttz<T>(x: T) -> u32;
|
||||||
pub fn cttz_nonzero<T>(x: T) -> T;
|
pub fn cttz_nonzero<T>(x: T) -> u32;
|
||||||
#[rustc_safe_intrinsic]
|
#[rustc_safe_intrinsic]
|
||||||
pub fn bswap<T>(x: T) -> T;
|
pub fn bswap<T>(x: T) -> T;
|
||||||
#[rustc_safe_intrinsic]
|
#[rustc_safe_intrinsic]
|
||||||
|
Loading…
Reference in New Issue
Block a user