Bless rustdoc for new negative impls · rust-lang-ci/rust@6cbbb8b (original) (raw)
File tree
4 files changed
lines changed
- tests/rustdoc/notable-trait
4 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1 | -<script type="text/json" id="notable-traits-data">{"&'static [SomeStruct]":"<h3>Notable traits for <code>&[<a class=\"struct\" href=\"struct.SomeStruct.html\" title=\"struct doc_notable_trait_slice::SomeStruct\">SomeStruct</a>]</code></h3><pre><code><div class=\"where\">impl <a class=\"trait\" href=\"trait.SomeTrait.html\" title=\"trait doc_notable_trait_slice::SomeTrait\">SomeTrait</a> for &[<a class=\"struct\" href=\"struct.SomeStruct.html\" title=\"struct doc_notable_trait_slice::SomeStruct\">SomeStruct</a>]</div>"}</script> | |
1 | +<script type="text/json" id="notable-traits-data">{"&'static [SomeStruct]":"<h3>Notable traits for <code><a class=\"primitive\" href=\"{{channel}}/std/primitive.slice.html\">[T]</a></code></h3><pre><code><div class=\"where\">impl<T> !<a class=\"trait\" href=\"{{channel}}/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a> for <a class=\"primitive\" href=\"{{channel}}/std/primitive.slice.html\">[T]</a></div><div class=\"where\">impl <a class=\"trait\" href=\"trait.SomeTrait.html\" title=\"trait doc_notable_trait_slice::SomeTrait\">SomeTrait</a> for &[<a class=\"struct\" href=\"struct.SomeStruct.html\" title=\"struct doc_notable_trait_slice::SomeStruct\">SomeStruct</a>]</div>"}</script> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 | +<script type="text/json" id="notable-traits-data">{"&'static mut [SomeStruct]":"<h3>Notable traits for <code><a class=\"primitive\" href=\"{{channel}}/std/primitive.slice.html\">[T]</a></code></h3><pre><code><div class=\"where\">impl<T> !<a class=\"trait\" href=\"{{channel}}/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a> for <a class=\"primitive\" href=\"{{channel}}/std/primitive.slice.html\">[T]</a></div>"}</script> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 | +<script type="text/json" id="notable-traits-data">{"&'static [OtherStruct]":"<h3>Notable traits for <code><a class=\"primitive\" href=\"{{channel}}/std/primitive.slice.html\">[T]</a></code></h3><pre><code><div class=\"where\">impl<T> !<a class=\"trait\" href=\"{{channel}}/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a> for <a class=\"primitive\" href=\"{{channel}}/std/primitive.slice.html\">[T]</a></div>"}</script> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -14,13 +14,13 @@ pub fn bare_fn_matches() -> &'static [SomeStruct] { | ||
14 | 14 | } |
15 | 15 | |
16 | 16 | // @has doc_notable_trait_slice/fn.bare_fn_no_matches.html |
17 | -// @count - '//script[@id="notable-traits-data"]' 0 | |
17 | +// @snapshot bare_fn_no_matches - '//script[@id="notable-traits-data"]' | |
18 | 18 | pub fn bare_fn_no_matches() -> &'static [OtherStruct] { |
19 | 19 | &[] |
20 | 20 | } |
21 | 21 | |
22 | 22 | // @has doc_notable_trait_slice/fn.bare_fn_mut_no_matches.html |
23 | -// @count - '//script[@id="notable-traits-data"]' 0 | |
23 | +// @snapshot bare_fn_mut_no_matches - '//script[@id="notable-traits-data"]' | |
24 | 24 | pub fn bare_fn_mut_no_matches() -> &'static mut [SomeStruct] { |
25 | 25 | &mut [] |
26 | 26 | } |