We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d9ee943 + bec2679 commit 4cdf492Copy full SHA for 4cdf492
tests/rustdoc-json/attrs/optimize.rs
@@ -0,0 +1,13 @@
1
+#![feature(optimize_attribute)]
2
+
3
+//@ is "$.index[?(@.name=='speed')].attrs" '["#[attr = Optimize(Speed)]"]'
4
+#[optimize(speed)]
5
+pub fn speed() {}
6
7
+//@ is "$.index[?(@.name=='size')].attrs" '["#[attr = Optimize(Size)]"]'
8
+#[optimize(size)]
9
+pub fn size() {}
10
11
+//@ is "$.index[?(@.name=='none')].attrs" '["#[attr = Optimize(DoNotOptimize)]"]'
12
+#[optimize(none)]
13
+pub fn none() {}
0 commit comments