Skip to content

Commit 0512c82

Browse files
Rollup merge of #142919 - aDotInTheVoid:cold-cold-attr-for-you, r=GuillaumeGomez
rustdoc-json: Add test for `#[cold]` Follow-up to #142491 r? `@GuillaumeGomez` CC `@jdonszelmann`
2 parents 4cdf492 + 98fce25 commit 0512c82

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/rustdoc-json/attrs/cold.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
//@ is "$.index[?(@.name=='cold_fn')].attrs" '["#[attr = Cold]"]'
2+
#[cold]
3+
pub fn cold_fn() {}

0 commit comments

Comments
 (0)