Skip to content

Commit d8ace32

Browse files
frank-king王俊吉
authored andcommitted
Remove the #[pin_v2] test since it produces different errors on different archs
1 parent e614ed4 commit d8ace32

File tree

2 files changed

+1
-27
lines changed

2 files changed

+1
-27
lines changed

tests/ui/pin-ergonomics/pin_v2-attr.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -135,24 +135,4 @@ macro_rules! macro_def {
135135
#[pin_v2] //~ ERROR `#[pin_v2]` attribute cannot be used on macro calls
136136
macro_def!();
137137

138-
// Restricted on architectures where inline assembly is stable
139-
// accroding to `compiler/rustc_ast_lowering/src/asm.rs`
140-
#[cfg(any(
141-
target_arch = "x86",
142-
target_arch = "x86_64",
143-
target_arch = "arm",
144-
target_arch = "aarch64",
145-
target_arch = "arm64ec",
146-
target_arch = "riscv32",
147-
target_arch = "riscv64",
148-
target_arch = "loongarch32",
149-
target_arch = "loongarch64",
150-
target_arch = "s390x",
151-
))]
152-
std::arch::global_asm! {
153-
"{}",
154-
#[pin_v2] //~ ERROR this attribute is not supported on assembly
155-
const 0
156-
}
157-
158138
fn main() {}

tests/ui/pin-ergonomics/pin_v2-attr.stderr

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ LL | #[pin_v2]
66
|
77
= help: `#[pin_v2]` can be applied to data types and unions
88

9-
error: this attribute is not supported on assembly
10-
--> $DIR/pin_v2-attr.rs:154:5
11-
|
12-
LL | #[pin_v2]
13-
| ^^^^^^^^^
14-
159
error: allow, cfg, cfg_attr, deny, expect, forbid, and warn are the only allowed built-in attributes in function parameters
1610
--> $DIR/pin_v2-attr.rs:84:12
1711
|
@@ -314,5 +308,5 @@ LL | #[pin_v2]
314308
|
315309
= help: `#[pin_v2]` can be applied to data types and unions
316310

317-
error: aborting due to 40 previous errors
311+
error: aborting due to 39 previous errors
318312

0 commit comments

Comments
 (0)