Skip to content

Commit 05c3a9c

Browse files
committed
Use cross-platform target feature
1 parent ebd996b commit 05c3a9c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

bon/tests/integration/ui/compile_fail/attr_builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ fn destructuring2((_, _): (u32, u32)) {}
7373
#[track_caller]
7474
fn double_track_caller() {}
7575
#[builder]
76-
#[target_feature(enable = "avx2")]
77-
#[target_feature(enable = "avx2")]
76+
#[target_feature(enable = "aes")]
77+
#[target_feature(enable = "aes")]
7878
fn double_invalid_target_feature() {}

bon/tests/integration/ui/compile_fail/attr_builder.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,5 @@ error: found multiple #[track_caller], but bon only works with exactly one or ze
9393
error: found multiple #[target_feature], but bon only works with exactly one or zero.
9494
--> tests/integration/ui/compile_fail/attr_builder.rs:77:1
9595
|
96-
77 | #[target_feature(enable = "avx2")]
96+
77 | #[target_feature(enable = "aes")]
9797
| ^

0 commit comments

Comments
 (0)