Skip to content

Commit dd315fd

Browse files
authored
Rollup merge of #107432 - notriddle:notriddle/has-srclink, r=GuillaumeGomez
rustdoc: remove unused class `has-srclink` Stopped being used in CSS with 73d0f7c.
2 parents 3922654 + 74e843c commit dd315fd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+96
-108
lines changed

src/librustdoc/html/render/mod.rs

+4-16
Original file line numberDiff line numberDiff line change
@@ -1528,11 +1528,7 @@ fn render_impl(
15281528
})
15291529
})
15301530
.map(|item| format!("{}.{}", item.type_(), name));
1531-
write!(
1532-
w,
1533-
"<section id=\"{}\" class=\"{}{} has-srclink\">",
1534-
id, item_type, in_trait_class,
1535-
);
1531+
write!(w, "<section id=\"{}\" class=\"{}{}\">", id, item_type, in_trait_class,);
15361532
render_rightside(w, cx, item, containing_item, render_mode);
15371533
if trait_.is_some() {
15381534
// Anchors are only used on trait impls.
@@ -1554,11 +1550,7 @@ fn render_impl(
15541550
kind @ (clean::TyAssocConstItem(ty) | clean::AssocConstItem(ty, _)) => {
15551551
let source_id = format!("{}.{}", item_type, name);
15561552
let id = cx.derive_id(source_id.clone());
1557-
write!(
1558-
w,
1559-
"<section id=\"{}\" class=\"{}{} has-srclink\">",
1560-
id, item_type, in_trait_class
1561-
);
1553+
write!(w, "<section id=\"{}\" class=\"{}{}\">", id, item_type, in_trait_class);
15621554
render_rightside(w, cx, item, containing_item, render_mode);
15631555
if trait_.is_some() {
15641556
// Anchors are only used on trait impls.
@@ -1606,11 +1598,7 @@ fn render_impl(
16061598
clean::AssocTypeItem(tydef, _bounds) => {
16071599
let source_id = format!("{}.{}", item_type, name);
16081600
let id = cx.derive_id(source_id.clone());
1609-
write!(
1610-
w,
1611-
"<section id=\"{}\" class=\"{}{} has-srclink\">",
1612-
id, item_type, in_trait_class
1613-
);
1601+
write!(w, "<section id=\"{}\" class=\"{}{}\">", id, item_type, in_trait_class);
16141602
if trait_.is_some() {
16151603
// Anchors are only used on trait impls.
16161604
write!(w, "<a href=\"#{}\" class=\"anchor\">§</a>", id);
@@ -1844,7 +1832,7 @@ pub(crate) fn render_impl_summary(
18441832
} else {
18451833
format!(" data-aliases=\"{}\"", aliases.join(","))
18461834
};
1847-
write!(w, "<section id=\"{}\" class=\"impl has-srclink\"{}>", id, aliases);
1835+
write!(w, "<section id=\"{}\" class=\"impl\"{}>", id, aliases);
18481836
render_rightside(w, cx, &i.impl_item, containing_item, RenderMode::Normal);
18491837
write!(w, "<a href=\"#{}\" class=\"anchor\">§</a>", id);
18501838
write!(w, "<h3 class=\"code-header\">");

src/librustdoc/html/render/print_item.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ fn item_trait(w: &mut Buffer, cx: &mut Context<'_>, it: &clean::Item, t: &clean:
735735
let method_toggle_class = if item_type.is_method() { " method-toggle" } else { "" };
736736
write!(w, "<details class=\"toggle{method_toggle_class}\" open><summary>");
737737
}
738-
write!(w, "<section id=\"{}\" class=\"method has-srclink\">", id);
738+
write!(w, "<section id=\"{}\" class=\"method\">", id);
739739
render_rightside(w, cx, m, t, RenderMode::Normal);
740740
write!(w, "<h4 class=\"code-header\">");
741741
render_assoc_item(

tests/rustdoc-gui/src-font-size.goml

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
goto: "file://" + |DOC_PATH| + "/test_docs/struct.Foo.html"
55
show-text: true
66
// Check the impl headers.
7-
assert-css: (".impl.has-srclink .srclink", {"font-size": "16px", "font-weight": 400}, ALL)
8-
assert-css: (".impl.has-srclink .code-header", {"font-size": "18px", "font-weight": 600}, ALL)
7+
assert-css: (".impl .srclink", {"font-size": "16px", "font-weight": 400}, ALL)
8+
assert-css: (".impl .code-header", {"font-size": "18px", "font-weight": 600}, ALL)
99
// Check the impl items.
10-
assert-css: (".impl-items .has-srclink .srclink", {"font-size": "16px", "font-weight": 400}, ALL)
11-
assert-css: (".impl-items .has-srclink .code-header", {"font-size": "16px", "font-weight": 600}, ALL)
10+
assert-css: (".impl-items .srclink", {"font-size": "16px", "font-weight": 400}, ALL)
11+
assert-css: (".impl-items .code-header", {"font-size": "16px", "font-weight": 600}, ALL)
1212

1313
// Check that we can click on source link
1414
store-document-property: (url, "URL")
15-
click: ".impl-items .has-srclink .srclink"
15+
click: ".impl-items .srclink"
1616
assert-document-property-false: {"URL": |url|}
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<section id="associatedconstant.YOLO" class="method has-srclink"><a class="srclink rightside" href="../src/foo/anchors.rs.html#16">source</a><h4 class="code-header">const <a href="#associatedconstant.YOLO" class="constant">YOLO</a>: <a class="primitive" href="{{channel}}/std/primitive.u32.html">u32</a></h4></section>
1+
<section id="associatedconstant.YOLO" class="method"><a class="srclink rightside" href="../src/foo/anchors.rs.html#16">source</a><h4 class="code-header">const <a href="#associatedconstant.YOLO" class="constant">YOLO</a>: <a class="primitive" href="{{channel}}/std/primitive.u32.html">u32</a></h4></section>
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<section id="associatedconstant.X" class="associatedconstant has-srclink"><a class="srclink rightside" href="../src/foo/anchors.rs.html#42">source</a><h4 class="code-header">pub const <a href="#associatedconstant.X" class="constant">X</a>: <a class="primitive" href="{{channel}}/std/primitive.i32.html">i32</a> = 0i32</h4></section>
1+
<section id="associatedconstant.X" class="associatedconstant"><a class="srclink rightside" href="../src/foo/anchors.rs.html#42">source</a><h4 class="code-header">pub const <a href="#associatedconstant.X" class="constant">X</a>: <a class="primitive" href="{{channel}}/std/primitive.i32.html">i32</a> = 0i32</h4></section>
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<section id="method.new" class="method has-srclink"><a class="srclink rightside" href="../src/foo/anchors.rs.html#48">source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>() -&gt; Self</h4></section>
1+
<section id="method.new" class="method"><a class="srclink rightside" href="../src/foo/anchors.rs.html#48">source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>() -&gt; Self</h4></section>
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<section id="method.bar" class="method has-srclink"><a class="srclink rightside" href="../src/foo/anchors.rs.html#23">source</a><h4 class="code-header">fn <a href="#method.bar" class="fn">bar</a>()</h4></section>
1+
<section id="method.bar" class="method"><a class="srclink rightside" href="../src/foo/anchors.rs.html#23">source</a><h4 class="code-header">fn <a href="#method.bar" class="fn">bar</a>()</h4></section>
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<section id="tymethod.foo" class="method has-srclink"><a class="srclink rightside" href="../src/foo/anchors.rs.html#20">source</a><h4 class="code-header">fn <a href="#tymethod.foo" class="fn">foo</a>()</h4></section>
1+
<section id="tymethod.foo" class="method"><a class="srclink rightside" href="../src/foo/anchors.rs.html#20">source</a><h4 class="code-header">fn <a href="#tymethod.foo" class="fn">foo</a>()</h4></section>
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<section id="associatedtype.T" class="method has-srclink"><a class="srclink rightside" href="../src/foo/anchors.rs.html#13">source</a><h4 class="code-header">type <a href="#associatedtype.T" class="associatedtype">T</a></h4></section>
1+
<section id="associatedtype.T" class="method"><a class="srclink rightside" href="../src/foo/anchors.rs.html#13">source</a><h4 class="code-header">type <a href="#associatedtype.T" class="associatedtype">T</a></h4></section>
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<section id="associatedtype.Y" class="associatedtype has-srclink"><h4 class="code-header">type <a href="#associatedtype.Y" class="associatedtype">Y</a> = <a class="primitive" href="{{channel}}/std/primitive.u32.html">u32</a></h4></section>
1+
<section id="associatedtype.Y" class="associatedtype"><h4 class="code-header">type <a href="#associatedtype.Y" class="associatedtype">Y</a> = <a class="primitive" href="{{channel}}/std/primitive.u32.html">u32</a></h4></section>

tests/rustdoc/async-fn.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ struct AsyncFdReadyGuard<'a, T> { x: &'a T }
7777

7878
impl Foo {
7979
// @has async_fn/struct.Foo.html
80-
// @has - '//*[@class="method has-srclink"]' 'pub async fn complicated_lifetimes( &self, context: &impl Bar) -> impl Iterator<Item = &usize>'
80+
// @has - '//*[@class="method"]' 'pub async fn complicated_lifetimes( &self, context: &impl Bar) -> impl Iterator<Item = &usize>'
8181
pub async fn complicated_lifetimes(&self, context: &impl Bar) -> impl Iterator<Item = &usize> {}
8282
// taken from `tokio` as an example of a method that was particularly bad before
83-
// @has - '//*[@class="method has-srclink"]' "pub async fn readable<T>(&self) -> Result<AsyncFdReadyGuard<'_, T>, ()>"
83+
// @has - '//*[@class="method"]' "pub async fn readable<T>(&self) -> Result<AsyncFdReadyGuard<'_, T>, ()>"
8484
pub async fn readable<T>(&self) -> Result<AsyncFdReadyGuard<'_, T>, ()> {}
85-
// @has - '//*[@class="method has-srclink"]' "pub async fn mut_self(&mut self)"
85+
// @has - '//*[@class="method"]' "pub async fn mut_self(&mut self)"
8686
pub async fn mut_self(&mut self) {}
8787
}
8888

tests/rustdoc/const-fn.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub const fn bar() -> usize {
88
}
99

1010
// @has foo/struct.Foo.html
11-
// @has - '//*[@class="method has-srclink"]' 'const fn new()'
11+
// @has - '//*[@class="method"]' 'const fn new()'
1212
pub struct Foo(usize);
1313

1414
impl Foo {

tests/rustdoc/const-generics/const-generic-slice.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pub trait Array {
55
}
66

77
// @has foo/trait.Array.html
8-
// @has - '//*[@class="impl has-srclink"]' 'impl<T, const N: usize> Array for [T; N]'
8+
// @has - '//*[@class="impl"]' 'impl<T, const N: usize> Array for [T; N]'
99
impl<T, const N: usize> Array for [T; N] {
1010
type Item = T;
1111
}

tests/rustdoc/doc-assoc-item.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub trait Bar {
88
fn foo(foo: Self::Fuu);
99
}
1010

11-
// @has doc_assoc_item/struct.Foo.html '//*[@class="impl has-srclink"]' 'impl<T: Bar<Fuu = u32>> Foo<T>'
11+
// @has doc_assoc_item/struct.Foo.html '//*[@class="impl"]' 'impl<T: Bar<Fuu = u32>> Foo<T>'
1212
impl<T: Bar<Fuu = u32>> Foo<T> {
1313
pub fn new(t: T) -> Foo<T> {
1414
Foo {

tests/rustdoc/duplicate_impls/issue-33054.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// @has issue_33054/impls/struct.Foo.html
44
// @has - '//h3[@class="code-header"]' 'impl Foo'
55
// @has - '//h3[@class="code-header"]' 'impl Bar for Foo'
6-
// @count - '//*[@id="trait-implementations-list"]//*[@class="impl has-srclink"]' 1
7-
// @count - '//*[@id="main-content"]/div[@id="implementations-list"]/details/summary/*[@class="impl has-srclink"]' 1
6+
// @count - '//*[@id="trait-implementations-list"]//*[@class="impl"]' 1
7+
// @count - '//*[@id="main-content"]/div[@id="implementations-list"]/details/summary/*[@class="impl"]' 1
88
// @has issue_33054/impls/bar/trait.Bar.html
99
// @has - '//h3[@class="code-header"]' 'impl Bar for Foo'
1010
// @count - '//*[@class="struct"]' 1

tests/rustdoc/duplicated_impl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// blanket implementations.
88

99
// @has 'foo/struct.Whatever.html'
10-
// @count - '//*[@id="blanket-implementations-list"]/section[@class="impl has-srclink"]' 1
10+
// @count - '//*[@id="blanket-implementations-list"]/section[@class="impl"]' 1
1111

1212
pub trait Something<T> { }
1313
pub struct Whatever;

tests/rustdoc/empty-impl-block-private-with-doc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub struct Foo;
1010
// There are 3 impl blocks with public item and one that should not be displayed
1111
// by default because it only contains private items (but not in this case because
1212
// we used `--document-private-items`).
13-
// @count - '//*[@class="impl has-srclink"]' 'impl Foo' 4
13+
// @count - '//*[@class="impl"]' 'impl Foo' 4
1414

1515
// Impl block only containing private items should not be displayed unless the
1616
// `--document-private-items` flag is used.

tests/rustdoc/empty-impl-block-private.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub struct Foo;
77

88
// There are 3 impl blocks with public item and one that should not be displayed
99
// because it only contains private items.
10-
// @count - '//*[@class="impl has-srclink"]' 'impl Foo' 3
10+
// @count - '//*[@class="impl"]' 'impl Foo' 3
1111

1212
// Impl block only containing private items should not be displayed.
1313
/// Private

tests/rustdoc/empty-impl-block.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub struct Foo;
88
/// Hello empty impl block!
99
impl Foo {}
1010
// We ensure that this empty impl block without doc isn't rendered.
11-
// @count - '//*[@class="impl has-srclink"]' 'impl Foo' 1
11+
// @count - '//*[@class="impl"]' 'impl Foo' 1
1212
impl Foo {}
1313

1414
// Just to ensure that empty trait impl blocks are rendered.

tests/rustdoc/impl-parts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pub auto trait AnAutoTrait {}
55

66
pub struct Foo<T> { field: T }
77

8-
// @has impl_parts/struct.Foo.html '//*[@class="impl has-srclink"]//h3[@class="code-header"]' \
8+
// @has impl_parts/struct.Foo.html '//*[@class="impl"]//h3[@class="code-header"]' \
99
// "impl<T> !AnAutoTrait for Foo<T>where T: Sync + Clone,"
1010
// @has impl_parts/trait.AnAutoTrait.html '//*[@id="implementors-list"]//h3[@class="code-header"]' \
1111
// "impl<T> !AnAutoTrait for Foo<T>where T: Sync + Clone,"

tests/rustdoc/inline_cross/issue-31948-1.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
extern crate rustdoc_nonreachable_impls;
66

77
// @has issue_31948_1/struct.Wobble.html
8-
// @has - '//*[@class="impl has-srclink"]//h3[@class="code-header"]' 'Bark for'
9-
// @has - '//*[@class="impl has-srclink"]//h3[@class="code-header"]' 'Woof for'
8+
// @has - '//*[@class="impl"]//h3[@class="code-header"]' 'Bark for'
9+
// @has - '//*[@class="impl"]//h3[@class="code-header"]' 'Woof for'
1010
// @!has - '//*[@class="impl"]//h3[@class="code-header"]' 'Bar for'
1111
// @!has - '//*[@class="impl"]//h3[@class="code-header"]' 'Qux for'
1212
pub use rustdoc_nonreachable_impls::hidden::Wobble;

tests/rustdoc/inline_cross/issue-31948-2.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
extern crate rustdoc_nonreachable_impls;
66

77
// @has issue_31948_2/struct.Wobble.html
8-
// @has - '//*[@class="impl has-srclink"]//h3[@class="code-header"]' 'Qux for'
9-
// @has - '//*[@class="impl has-srclink"]//h3[@class="code-header"]' 'Bark for'
10-
// @has - '//*[@class="impl has-srclink"]//h3[@class="code-header"]' 'Woof for'
8+
// @has - '//*[@class="impl"]//h3[@class="code-header"]' 'Qux for'
9+
// @has - '//*[@class="impl"]//h3[@class="code-header"]' 'Bark for'
10+
// @has - '//*[@class="impl"]//h3[@class="code-header"]' 'Woof for'
1111
// @!has - '//*[@class="impl"]//h3[@class="code-header"]' 'Bar for'
1212
pub use rustdoc_nonreachable_impls::hidden::Wobble;
1313

tests/rustdoc/inline_cross/issue-31948.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
extern crate rustdoc_nonreachable_impls;
66

77
// @has issue_31948/struct.Foo.html
8-
// @has - '//*[@class="impl has-srclink"]//h3[@class="code-header"]' 'Bark for'
9-
// @has - '//*[@class="impl has-srclink"]//h3[@class="code-header"]' 'Woof for'
10-
// @!has - '//*[@class="impl has-srclink"]//h3[@class="code-header"]' 'Bar for'
8+
// @has - '//*[@class="impl"]//h3[@class="code-header"]' 'Bark for'
9+
// @has - '//*[@class="impl"]//h3[@class="code-header"]' 'Woof for'
10+
// @!has - '//*[@class="impl"]//h3[@class="code-header"]' 'Bar for'
1111
// @!has - '//*[@class="impl"]//h3[@class="code-header"]' 'Qux for'
1212
pub use rustdoc_nonreachable_impls::Foo;
1313

tests/rustdoc/issue-21474.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ mod inner {
77
pub trait Blah { }
88

99
// @count issue_21474/struct.What.html \
10-
// '//*[@id="trait-implementations-list"]//*[@class="impl has-srclink"]' 1
10+
// '//*[@id="trait-implementations-list"]//*[@class="impl"]' 1
1111
pub struct What;

tests/rustdoc/issue-33302.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,23 @@ macro_rules! make {
2222
}
2323

2424
// @has issue_33302/struct.S.html \
25-
// '//*[@class="impl has-srclink"]' 'impl T<[i32; 16]> for S'
25+
// '//*[@class="impl"]' 'impl T<[i32; 16]> for S'
2626
// @has - '//*[@id="associatedconstant.C"]' 'const C: [i32; 16]'
2727
// @has - '//*[@id="associatedconstant.D"]' 'const D: i32'
2828
impl T<[i32; ($n * $n)]> for S {
2929
const C: [i32; ($n * $n)] = [0; ($n * $n)];
3030
}
3131

3232
// @has issue_33302/struct.S.html \
33-
// '//*[@class="impl has-srclink"]' 'impl T<[i32; 16]> for S'
33+
// '//*[@class="impl"]' 'impl T<[i32; 16]> for S'
3434
// @has - '//*[@id="associatedconstant.C-1"]' 'const C: (i32,)'
3535
// @has - '//*[@id="associatedconstant.D-1"]' 'const D: i32'
3636
impl T<(i32,)> for S {
3737
const C: (i32,) = ($n,);
3838
}
3939

4040
// @has issue_33302/struct.S.html \
41-
// '//*[@class="impl has-srclink"]' 'impl T<(i32, i32)> for S'
41+
// '//*[@class="impl"]' 'impl T<(i32, i32)> for S'
4242
// @has - '//*[@id="associatedconstant.C-2"]' 'const C: (i32, i32)'
4343
// @has - '//*[@id="associatedconstant.D-2"]' 'const D: i32'
4444
impl T<(i32, i32)> for S {

tests/rustdoc/issue-45584.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ pub trait Bar<T, U> {}
44

55
// @has 'foo/struct.Foo1.html'
66
pub struct Foo1;
7-
// @count - '//*[@id="trait-implementations-list"]//*[@class="impl has-srclink"]' 1
8-
// @has - '//*[@class="impl has-srclink"]' "impl Bar<Foo1, &'static Foo1> for Foo1"
7+
// @count - '//*[@id="trait-implementations-list"]//*[@class="impl"]' 1
8+
// @has - '//*[@class="impl"]' "impl Bar<Foo1, &'static Foo1> for Foo1"
99
impl Bar<Foo1, &'static Foo1> for Foo1 {}
1010

1111
// @has 'foo/struct.Foo2.html'
1212
pub struct Foo2;
13-
// @count - '//*[@id="trait-implementations-list"]//*[@class="impl has-srclink"]' 1
14-
// @has - '//*[@class="impl has-srclink"]' "impl Bar<&'static Foo2, Foo2> for u8"
13+
// @count - '//*[@id="trait-implementations-list"]//*[@class="impl"]' 1
14+
// @has - '//*[@class="impl"]' "impl Bar<&'static Foo2, Foo2> for u8"
1515
impl Bar<&'static Foo2, Foo2> for u8 {}

tests/rustdoc/issue-50159.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ impl<B, C> Signal2 for B where B: Signal<Item = C> {
1414
// @has - '//h3[@class="code-header"]' 'impl<B> Send for Switch<B>where <B as Signal>::Item: Send'
1515
// @has - '//h3[@class="code-header"]' 'impl<B> Sync for Switch<B>where <B as Signal>::Item: Sync'
1616
// @count - '//*[@id="implementations-list"]//*[@class="impl"]' 0
17-
// @count - '//*[@id="synthetic-implementations-list"]//*[@class="impl has-srclink"]' 5
17+
// @count - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]' 5
1818
pub struct Switch<B: Signal> {
1919
pub inner: <B as Signal2>::Item2,
2020
}

tests/rustdoc/issue-51236.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub mod traits {
77
}
88

99
// @has issue_51236/struct.Owned.html
10-
// @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl has-srclink"]//h3[@class="code-header"]' \
10+
// @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
1111
// "impl<T> Send for Owned<T>where <T as Owned<'static>>::Reader: Send"
1212
pub struct Owned<T> where T: for<'a> ::traits::Owned<'a> {
1313
marker: PhantomData<<T as ::traits::Owned<'static>>::Reader>,

tests/rustdoc/issue-53812.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ macro_rules! array_impls {
1212
}
1313

1414
// @has issue_53812/trait.MyIterator.html
15-
// @has - '//*[@id="implementors-list"]/*[@class="impl has-srclink"][1]' 'MyStruct<[T; 0]>'
16-
// @has - '//*[@id="implementors-list"]/*[@class="impl has-srclink"][2]' 'MyStruct<[T; 1]>'
17-
// @has - '//*[@id="implementors-list"]/*[@class="impl has-srclink"][3]' 'MyStruct<[T; 2]>'
18-
// @has - '//*[@id="implementors-list"]/*[@class="impl has-srclink"][4]' 'MyStruct<[T; 3]>'
19-
// @has - '//*[@id="implementors-list"]/*[@class="impl has-srclink"][5]' 'MyStruct<[T; 10]>'
15+
// @has - '//*[@id="implementors-list"]/*[@class="impl"][1]' 'MyStruct<[T; 0]>'
16+
// @has - '//*[@id="implementors-list"]/*[@class="impl"][2]' 'MyStruct<[T; 1]>'
17+
// @has - '//*[@id="implementors-list"]/*[@class="impl"][3]' 'MyStruct<[T; 2]>'
18+
// @has - '//*[@id="implementors-list"]/*[@class="impl"][4]' 'MyStruct<[T; 3]>'
19+
// @has - '//*[@id="implementors-list"]/*[@class="impl"][5]' 'MyStruct<[T; 10]>'
2020
array_impls! { 10 3 2 1 0 }

tests/rustdoc/issue-54705.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
pub trait ScopeHandle<'scope> {}
22

33
// @has issue_54705/struct.ScopeFutureContents.html
4-
// @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl has-srclink"]//h3[@class="code-header"]' \
4+
// @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
55
// "impl<'scope, S> Send for ScopeFutureContents<'scope, S>where S: Sync"
66
//
7-
// @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl has-srclink"]//h3[@class="code-header"]' \
7+
// @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
88
// "impl<'scope, S> Sync for ScopeFutureContents<'scope, S>where S: Sync"
99
pub struct ScopeFutureContents<'scope, S>
1010
where S: ScopeHandle<'scope>,

0 commit comments

Comments
 (0)