From 90aa25a1c5dbae1e94099b1a2015dfb83783dbe0 Mon Sep 17 00:00:00 2001 From: Karol Zwolak Date: Fri, 22 Aug 2025 20:40:30 +0200 Subject: rustdoc: update attribute tests --- tests/rustdoc/attribute-rendering.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/rustdoc/attribute-rendering.rs') diff --git a/tests/rustdoc/attribute-rendering.rs b/tests/rustdoc/attribute-rendering.rs index bf9b81077f3..fb40d0a9887 100644 --- a/tests/rustdoc/attribute-rendering.rs +++ b/tests/rustdoc/attribute-rendering.rs @@ -1,7 +1,8 @@ #![crate_name = "foo"] //@ has 'foo/fn.f.html' -//@ has - //*[@'class="rust item-decl"]' '#[unsafe(export_name = "f")] pub fn f()' +//@ has - //*[@'class="code-attribute"]' '#[unsafe(export_name = "f")]' +//@ has - //*[@'class="rust item-decl"]' 'pub fn f()' #[unsafe(export_name = "\ f")] pub fn f() {} -- cgit 1.4.1-3-g733a5