Skip to content

Commit

Permalink
Fixup 2 ui tests using changed intrinsics
Browse files Browse the repository at this point in the history
  • Loading branch information
WaffleLapkin committed Apr 16, 2024
1 parent c2046c4 commit 4b6bbcb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/ui/intrinsics/bad-intrinsic-monomorphization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`
}
Expand Down
10 changes: 5 additions & 5 deletions tests/ui/intrinsics/intrinsics-integer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 4b6bbcb

Please sign in to comment.