From 98fce2546dcfe66c85f6186fc747a20bb697ef94 Mon Sep 17 00:00:00 2001 From: Alona Enraght-Moony Date: Mon, 23 Jun 2025 17:18:13 +0000 Subject: [PATCH] rustdoc-json: Add test for `#[cold]` Follow-up to https://www.github.com/rust-lang/rust/pull/142491 --- tests/rustdoc-json/attrs/cold.rs | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tests/rustdoc-json/attrs/cold.rs diff --git a/tests/rustdoc-json/attrs/cold.rs b/tests/rustdoc-json/attrs/cold.rs new file mode 100644 index 0000000000000..e219345d669c5 --- /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() {}