We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 039af88 commit dc04c0cCopy full SHA for dc04c0c
tests/rustdoc-ui/target-feature-stability.rs
@@ -0,0 +1,18 @@
1
+//! This is a regression test for <https://github.com/rust-lang/rust/issues/137366>, ensuring
2
+//! that we can use the `neon` target feature on ARM-32 targets in rustdoc despite there
3
+//! being a "forbidden" feature of the same name for aarch64, and rustdoc merging the
4
+//! target features of all targets.
5
+//@ check-pass
6
+//@ compile-flags: --target armv7-unknown-linux-gnueabihf
7
+
8
+#![crate_type = "lib"]
9
+#![feature(no_core, lang_items)]
10
+#![feature(arm_target_feature)]
11
+#![no_core]
12
13
+#[lang = "sized"]
14
+pub trait Sized {}
15
16
+// `fp-armv8` is "forbidden" on aarch64 as we tie it to `neon`.
17
+#[target_feature(enable = "fp-armv8")]
18
+pub fn fun() {}
0 commit comments