Rollup merge of #163703 - GuillaumeGomez:clean-rustdoc-html-tests, r=Urgau

Move more `rustdoc-html tests` in the right location

Follow-up of https://github.com/rust-lang/rust/pull/162372.

r? @Urgau
This commit is contained in:
Jacob Pratt
2026-10-03 22:30:42 -04:00
committed by GitHub
19 changed files with 23 additions and 19 deletions

View File

@@ -1,19 +0,0 @@
//@ aux-build:issue-13698.rs
//@ ignore-cross-compile
// https://github.com/rust-lang/rust/issues/13698
#![crate_name="issue_13698"]
extern crate issue_13698;
pub struct Foo;
//@ !has issue_13698/struct.Foo.html '//*[@id="method.foo"]' 'fn foo'
impl issue_13698::Foo for Foo {}
pub trait Bar {
#[doc(hidden)]
fn bar(&self) {}
}
//@ !has issue_13698/struct.Foo.html '//*[@id="method.bar"]' 'fn bar'
impl Bar for Foo {}

View File

@@ -3,6 +3,7 @@
pub trait Foo {
#[doc(hidden)]
fn foo(&self) {}
fn not_hidden(&self) {}
}
impl Foo for i32 {}

View File

@@ -0,0 +1,22 @@
//@ aux-build:issue-13698.rs
//@ ignore-cross-compile
// https://github.com/rust-lang/rust/issues/13698
#![crate_name="issue_13698"]
extern crate issue_13698;
pub struct Foo;
//@ has 'issue_13698/struct.Foo.html'
// There is only one visible trait impl method (from the `Foo` trait).
//@ count - '//*[@id="trait-implementations-list"]//*[@class="method trait-impl"]' 1
//@ has - '//*[@id="trait-implementations-list"]//*[@class="method trait-impl"]' \
// 'fn not_hidden(&self)'
impl issue_13698::Foo for Foo {}
pub trait Bar {
#[doc(hidden)]
fn bar(&self) {}
}
impl Bar for Foo {}