about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-06-24 15:39:41 +0200
committerGitHub <noreply@github.com>2025-06-24 15:39:41 +0200
commit0512c82cfa1ef2c6fa0ae7f7f3f057a64d1ae625 (patch)
treef50b93151f29660682d2bd154471774018d3c412
parent4cdf492760cf889f9cd088ac02f8ab563c110837 (diff)
parent98fce2546dcfe66c85f6186fc747a20bb697ef94 (diff)
downloadrust-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.rs3
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() {}