Rollup merge of #127671 - notriddle:notriddle/issue-d, r=Mark-Simulacrum
rustdoc: rename `issue-\d+.rs` tests to have meaningful names (part 8) Follow up * https://github.com/rust-lang/rust/pull/116214 * https://github.com/rust-lang/rust/pull/116432 * https://github.com/rust-lang/rust/pull/116824 * https://github.com/rust-lang/rust/pull/118105 * https://github.com/rust-lang/rust/pull/119561 * https://github.com/rust-lang/rust/pull/123574 * https://github.com/rust-lang/rust/pull/125382 As always, it's easier to review the commits one at a time. Don't use the Files Changed tab. It's confusing.
This commit is contained in:
commit
6a3566c2b0
21 changed files with 40 additions and 16 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
//@ check-pass
|
||||||
|
// https://github.com/rust-lang/rust/issues/102154
|
||||||
|
|
||||||
trait A<Y, N> {
|
trait A<Y, N> {
|
||||||
type B;
|
type B;
|
||||||
}
|
}
|
|
@ -1,3 +1,6 @@
|
||||||
|
//@ check-pass
|
||||||
|
// https://github.com/rust-lang/rust/issues/100620
|
||||||
|
|
||||||
pub trait Bar<S> {}
|
pub trait Bar<S> {}
|
||||||
|
|
||||||
pub trait Qux<T> {}
|
pub trait Qux<T> {}
|
|
@ -3,6 +3,8 @@
|
||||||
// Check that this isn't an ICE
|
// Check that this isn't an ICE
|
||||||
//@ should-fail
|
//@ should-fail
|
||||||
|
|
||||||
|
// https://github.com/rust-lang/rust/issues/100241
|
||||||
|
|
||||||
mod foo {
|
mod foo {
|
||||||
pub use inner::S;
|
pub use inner::S;
|
||||||
//~^ ERROR unresolved imports `inner`, `foo::S`
|
//~^ ERROR unresolved imports `inner`, `foo::S`
|
|
@ -2,7 +2,10 @@
|
||||||
//@ ignore-cross-compile
|
//@ ignore-cross-compile
|
||||||
// This is the version where a non-compiler-internal crate inlines a compiler-internal one.
|
// This is the version where a non-compiler-internal crate inlines a compiler-internal one.
|
||||||
// In this case, the item shouldn't be documented, because regular users can't get at it.
|
// In this case, the item shouldn't be documented, because regular users can't get at it.
|
||||||
|
// https://github.com/rust-lang/rust/issues/106421
|
||||||
|
#![crate_name="bar"]
|
||||||
|
|
||||||
extern crate foo;
|
extern crate foo;
|
||||||
|
|
||||||
//@ !has issue_106421_not_internal/struct.FatalError.html '//*[@id="method.raise"]' 'fn raise'
|
//@ !has bar/struct.FatalError.html '//*[@id="method.raise"]' 'fn raise'
|
||||||
pub use foo::FatalError;
|
pub use foo::FatalError;
|
|
@ -1,8 +1,10 @@
|
||||||
//@ aux-build:issue-106421-force-unstable.rs
|
//@ aux-build:issue-106421-force-unstable.rs
|
||||||
//@ ignore-cross-compile
|
//@ ignore-cross-compile
|
||||||
//@ compile-flags: -Zforce-unstable-if-unmarked
|
//@ compile-flags: -Zforce-unstable-if-unmarked
|
||||||
|
// https://github.com/rust-lang/rust/issues/106421
|
||||||
|
#![crate_name="bar"]
|
||||||
|
|
||||||
extern crate foo;
|
extern crate foo;
|
||||||
|
|
||||||
//@ has issue_106421/struct.FatalError.html '//*[@id="method.raise"]' 'fn raise'
|
//@ has bar/struct.FatalError.html '//*[@id="method.raise"]' 'fn raise'
|
||||||
pub use foo::FatalError;
|
pub use foo::FatalError;
|
|
@ -1,3 +1,4 @@
|
||||||
|
// https://github.com/rust-lang/rust/issues/105952
|
||||||
#![crate_name = "foo"]
|
#![crate_name = "foo"]
|
||||||
|
|
||||||
#![feature(associated_const_equality)]
|
#![feature(associated_const_equality)]
|
|
@ -2,6 +2,7 @@
|
||||||
//@ build-aux-docs
|
//@ build-aux-docs
|
||||||
//@ ignore-cross-compile
|
//@ ignore-cross-compile
|
||||||
|
|
||||||
|
// https://github.com/rust-lang/rust/issues/100204
|
||||||
#![crate_name="second"]
|
#![crate_name="second"]
|
||||||
|
|
||||||
extern crate first;
|
extern crate first;
|
|
@ -1,14 +0,0 @@
|
||||||
//@ has 'issue_106142/a/index.html'
|
|
||||||
//@ count 'issue_106142/a/index.html' '//ul[@class="item-table"]//li//a' 1
|
|
||||||
|
|
||||||
#![allow(rustdoc::broken_intra_doc_links)]
|
|
||||||
|
|
||||||
pub mod a {
|
|
||||||
/// [`m`]
|
|
||||||
pub fn f() {}
|
|
||||||
|
|
||||||
#[macro_export]
|
|
||||||
macro_rules! m {
|
|
||||||
() => {};
|
|
||||||
}
|
|
||||||
}
|
|
17
tests/rustdoc/macro-rules-broken-intra-doc-106142.rs
Normal file
17
tests/rustdoc/macro-rules-broken-intra-doc-106142.rs
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
// https://github.com/rust-lang/rust/issues/106142
|
||||||
|
#![crate_name="foo"]
|
||||||
|
|
||||||
|
//@ has 'foo/a/index.html'
|
||||||
|
//@ count 'foo/a/index.html' '//ul[@class="item-table"]//li//a' 1
|
||||||
|
|
||||||
|
#![allow(rustdoc::broken_intra_doc_links)]
|
||||||
|
|
||||||
|
pub mod a {
|
||||||
|
/// [`m`]
|
||||||
|
pub fn f() {}
|
||||||
|
|
||||||
|
#[macro_export]
|
||||||
|
macro_rules! m {
|
||||||
|
() => {};
|
||||||
|
}
|
||||||
|
}
|
|
@ -2,6 +2,7 @@
|
||||||
//@ build-aux-docs
|
//@ build-aux-docs
|
||||||
//@ ignore-cross-compile
|
//@ ignore-cross-compile
|
||||||
|
|
||||||
|
// https://github.com/rust-lang/rust/issues/99734
|
||||||
#![crate_name = "foo"]
|
#![crate_name = "foo"]
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
|
@ -2,6 +2,7 @@
|
||||||
//@ build-aux-docs
|
//@ build-aux-docs
|
||||||
//@ ignore-cross-compile
|
//@ ignore-cross-compile
|
||||||
|
|
||||||
|
// https://github.com/rust-lang/rust/issues/99221
|
||||||
#![crate_name = "foo"]
|
#![crate_name = "foo"]
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
|
@ -2,6 +2,7 @@
|
||||||
//@ build-aux-docs
|
//@ build-aux-docs
|
||||||
//@ ignore-cross-compile
|
//@ ignore-cross-compile
|
||||||
|
|
||||||
|
// https://github.com/rust-lang/rust/issues/99734
|
||||||
#![crate_name = "foo"]
|
#![crate_name = "foo"]
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
|
@ -2,6 +2,7 @@
|
||||||
//@ build-aux-docs
|
//@ build-aux-docs
|
||||||
//@ ignore-cross-compile
|
//@ ignore-cross-compile
|
||||||
|
|
||||||
|
// https://github.com/rust-lang/rust/issues/99221
|
||||||
#![crate_name = "foo"]
|
#![crate_name = "foo"]
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
|
@ -1,4 +1,5 @@
|
||||||
// Regression test to ensure that both `AtomicU8` items are displayed but not the re-export.
|
// Regression test to ensure that both `AtomicU8` items are displayed but not the re-export.
|
||||||
|
// https://github.com/rust-lang/rust/issues/105735
|
||||||
|
|
||||||
#![crate_name = "foo"]
|
#![crate_name = "foo"]
|
||||||
#![no_std]
|
#![no_std]
|
|
@ -1,4 +1,5 @@
|
||||||
// Regression test to ensure that both `AtomicU8` items are displayed but not the re-export.
|
// Regression test to ensure that both `AtomicU8` items are displayed but not the re-export.
|
||||||
|
// https://github.com/rust-lang/rust/issues/105735
|
||||||
|
|
||||||
#![crate_name = "foo"]
|
#![crate_name = "foo"]
|
||||||
#![no_std]
|
#![no_std]
|
Loading…
Add table
Reference in a new issue