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