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.
#[optimize(..)]
1 parent 42245d3 commit bec2679Copy full SHA for bec2679
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