Skip to content

Commit 38f5a99

Browse files
committed
comment, and bless, unstable linker flavor test
1 parent 6594f36 commit 38f5a99

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
error: linker flavor `bpf-linker` is unstable, `-Z unstable-options` flag must also be passed to explicitly use it
1+
error: the linker flavor `bpf-linker` is unstable, the `-Z unstable-options` flag must also be passed to use the unstable values
22

Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
error: linker flavor `ptx-linker` is unstable, `-Z unstable-options` flag must also be passed to explicitly use it
1+
error: the linker flavor `ptx-linker` is unstable, the `-Z unstable-options` flag must also be passed to use the unstable values
22

tests/ui/linkage-attr/unstable-flavor.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
// Even though this test only checks 2 of the 10 or so unstable linker flavors, it exercizes the
2+
// unique codepath checking all unstable options (see `LinkerFlavorCli::is_unstable` and its
3+
// caller). If it passes, all the other unstable options are rejected as well.
4+
//
15
// revisions: bpf ptx
26
// [bpf] compile-flags: --target=bpfel-unknown-none -C linker-flavor=bpf-linker --crate-type=rlib
3-
// [bpf] error-pattern: linker flavor `bpf-linker` is unstable, `-Z unstable-options` flag
7+
// [bpf] error-pattern: linker flavor `bpf-linker` is unstable, the `-Z unstable-options` flag
48
// [bpf] needs-llvm-components:
59
// [ptx] compile-flags: --target=nvptx64-nvidia-cuda -C linker-flavor=ptx-linker --crate-type=rlib
6-
// [ptx] error-pattern: linker flavor `ptx-linker` is unstable, `-Z unstable-options` flag
10+
// [ptx] error-pattern: linker flavor `ptx-linker` is unstable, the `-Z unstable-options` flag
711
// [ptx] needs-llvm-components:
812

913
#![feature(no_core)]

0 commit comments

Comments
 (0)