From 6cbbb8b709a43482847243484ed67131e372ba71 Mon Sep 17 00:00:00 2001 From: Michael Goulet Date: Tue, 14 May 2024 20:20:27 -0400 Subject: [PATCH] Bless rustdoc for new negative impls We now mention `[T]: !Iterator`, though arguably we shouldn't. I don't believe that changes to `doc_notable_trait` should be done in this PR, though. --- .../doc-notable_trait-slice.bare_fn_matches.html | 2 +- .../doc-notable_trait-slice.bare_fn_mut_no_matches.html | 1 + .../doc-notable_trait-slice.bare_fn_no_matches.html | 1 + tests/rustdoc/notable-trait/doc-notable_trait-slice.rs | 4 ++-- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 tests/rustdoc/notable-trait/doc-notable_trait-slice.bare_fn_mut_no_matches.html create mode 100644 tests/rustdoc/notable-trait/doc-notable_trait-slice.bare_fn_no_matches.html diff --git a/tests/rustdoc/notable-trait/doc-notable_trait-slice.bare_fn_matches.html b/tests/rustdoc/notable-trait/doc-notable_trait-slice.bare_fn_matches.html index 7d2a2589133be..cdde67278daed 100644 --- a/tests/rustdoc/notable-trait/doc-notable_trait-slice.bare_fn_matches.html +++ b/tests/rustdoc/notable-trait/doc-notable_trait-slice.bare_fn_matches.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/tests/rustdoc/notable-trait/doc-notable_trait-slice.bare_fn_mut_no_matches.html b/tests/rustdoc/notable-trait/doc-notable_trait-slice.bare_fn_mut_no_matches.html new file mode 100644 index 0000000000000..710b6ae080250 --- /dev/null +++ b/tests/rustdoc/notable-trait/doc-notable_trait-slice.bare_fn_mut_no_matches.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/tests/rustdoc/notable-trait/doc-notable_trait-slice.bare_fn_no_matches.html b/tests/rustdoc/notable-trait/doc-notable_trait-slice.bare_fn_no_matches.html new file mode 100644 index 0000000000000..4dac43c65e45c --- /dev/null +++ b/tests/rustdoc/notable-trait/doc-notable_trait-slice.bare_fn_no_matches.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/tests/rustdoc/notable-trait/doc-notable_trait-slice.rs b/tests/rustdoc/notable-trait/doc-notable_trait-slice.rs index ef206710b4b08..8250e8604c51b 100644 --- a/tests/rustdoc/notable-trait/doc-notable_trait-slice.rs +++ b/tests/rustdoc/notable-trait/doc-notable_trait-slice.rs @@ -14,13 +14,13 @@ pub fn bare_fn_matches() -> &'static [SomeStruct] { } // @has doc_notable_trait_slice/fn.bare_fn_no_matches.html -// @count - '//script[@id="notable-traits-data"]' 0 +// @snapshot bare_fn_no_matches - '//script[@id="notable-traits-data"]' pub fn bare_fn_no_matches() -> &'static [OtherStruct] { &[] } // @has doc_notable_trait_slice/fn.bare_fn_mut_no_matches.html -// @count - '//script[@id="notable-traits-data"]' 0 +// @snapshot bare_fn_mut_no_matches - '//script[@id="notable-traits-data"]' pub fn bare_fn_mut_no_matches() -> &'static mut [SomeStruct] { &mut [] }