diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-06-24 15:39:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-24 15:39:41 +0200 |
| commit | 0512c82cfa1ef2c6fa0ae7f7f3f057a64d1ae625 (patch) | |
| tree | f50b93151f29660682d2bd154471774018d3c412 | |
| parent | 4cdf492760cf889f9cd088ac02f8ab563c110837 (diff) | |
| parent | 98fce2546dcfe66c85f6186fc747a20bb697ef94 (diff) | |
| download | rust-0512c82cfa1ef2c6fa0ae7f7f3f057a64d1ae625.tar.gz rust-0512c82cfa1ef2c6fa0ae7f7f3f057a64d1ae625.zip | |
Rollup merge of #142919 - aDotInTheVoid:cold-cold-attr-for-you, r=GuillaumeGomez
rustdoc-json: Add test for `#[cold]` Follow-up to https://github.com/rust-lang/rust/pull/142491 r? `@GuillaumeGomez` CC `@jdonszelmann`
| -rw-r--r-- | tests/rustdoc-json/attrs/cold.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/rustdoc-json/attrs/cold.rs b/tests/rustdoc-json/attrs/cold.rs new file mode 100644 index 00000000000..e219345d669 --- /dev/null +++ b/tests/rustdoc-json/attrs/cold.rs @@ -0,0 +1,3 @@ +//@ is "$.index[?(@.name=='cold_fn')].attrs" '["#[attr = Cold]"]' +#[cold] +pub fn cold_fn() {} |
