Rollup merge of #116432 - notriddle:master, r=fmease

rustdoc: rename `issue-\d+.rs` tests to have meaningful names (part 2)

Follow up https://github.com/rust-lang/rust/pull/116214
This commit is contained in:
Jubilee 2023-10-05 00:56:31 -07:00 committed by GitHub
commit 4a14a80605
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
25 changed files with 68 additions and 8 deletions

View File

@ -1,3 +1,6 @@
// https://github.com/rust-lang/rust/issues/25001
#![crate_name="issue_25001"]
// @has issue_25001/struct.Foo.html
pub struct Foo<T>(T);

View File

@ -1,3 +1,6 @@
// https://github.com/rust-lang/rust/issues/28478
#![crate_name="issue_28478"]
#![feature(associated_type_defaults)]
// @has issue_28478/trait.Bar.html

View File

@ -1,3 +1,6 @@
// https://github.com/rust-lang/rust/issues/21474
#![crate_name="issue_21474"]
pub use inner::*;
mod inner {

View File

@ -1,6 +1,9 @@
// aux-build:issue-22025.rs
// ignore-cross-compile
// https://github.com/rust-lang/rust/issues/22025
#![crate_name="issue_22025"]
extern crate issue_22025;
pub use issue_22025::foo::{Foo, Bar};

View File

@ -0,0 +1,10 @@
// compile-flags:--test
// https://github.com/rust-lang/rust/issues/23106
#![crate_name="issue_23106"]
/// ```
/// #
/// ```
pub fn main() {
}

View File

@ -1,5 +1,8 @@
// compile-flags:--test
// https://github.com/rust-lang/rust/issues/23744
#![crate_name="issue_23744"]
/// Example of rustdoc incorrectly parsing <code>```rust,should_panic</code>.
///
/// ```should_panic

View File

@ -1,5 +1,8 @@
// compile-flags:--test
// https://github.com/rust-lang/rust/issues/25944
#![crate_name="issue_25944"]
/// ```
/// let a = r#"
/// foo

View File

@ -1,3 +1,6 @@
// https://github.com/rust-lang/rust/issues/22038
#![crate_name="issue_22038"]
extern "C" {
// @has issue_22038/fn.foo1.html \
// '//pre[@class="rust item-decl"]' 'pub unsafe extern "C" fn foo1()'

View File

@ -2,5 +2,8 @@
// aux-build:issue-28927-1.rs
// ignore-cross-compile
// https://github.com/rust-lang/rust/issues/28927
#![crate_name="issue_28927"]
pub extern crate issue_28927_1 as inner1;
pub use inner1 as foo;

View File

@ -1,6 +1,9 @@
// aux-build:issue-21092.rs
// ignore-cross-compile
// https://github.com/rust-lang/rust/issues/21092
#![crate_name="issue_21092"]
extern crate issue_21092;
// @has issue_21092/struct.Bar.html

View File

@ -1,6 +1,9 @@
// aux-build:issue-27362-aux.rs
// ignore-cross-compile
// https://github.com/rust-lang/rust/issues/27362
#![crate_name="issue_27362"]
extern crate issue_27362_aux;
pub use issue_27362_aux::*;

View File

@ -2,6 +2,9 @@
// aux-build:issue-23207-2.rs
// ignore-cross-compile
// https://github.com/rust-lang/rust/issues/23207
#![crate_name="issue_23207"]
extern crate issue_23207_2;
// @has issue_23207/fmt/index.html

View File

@ -1,6 +1,9 @@
// aux-build:issue-21801.rs
// ignore-cross-compile
// https://github.com/rust-lang/rust/issues/21801
#![crate_name="issue_21801"]
extern crate issue_21801;
// @has issue_21801/struct.Foo.html

View File

@ -1,7 +0,0 @@
// compile-flags:--test
/// ```
/// #
/// ```
pub fn main() {
}

View File

@ -1,3 +1,6 @@
// https://github.com/rust-lang/rust/issues/23812
#![crate_name="issue_23812"]
macro_rules! doc {
(#[$outer:meta] mod $i:ident { #![$inner:meta] }) =>
(

View File

@ -1,3 +1,6 @@
// https://github.com/rust-lang/rust/issues/27862
#![crate_name="issue_27862"]
/// Tests | Table
/// ------|-------------
/// t = b | id = \|x\| x

View File

@ -2,6 +2,9 @@
#![feature(rustdoc_internals)]
#![no_std]
// https://github.com/rust-lang/rust/issues/23511
#![crate_name="issue_23511"]
pub mod str {
#![rustc_doc_primitive = "str"]

View File

@ -2,10 +2,13 @@
// ignore-cross-compile
// build-aux-docs
// https://github.com/rust-lang/rust/issues/26606
#![crate_name="issue_26606"]
// @has issue_26606_macro/macro.make_item.html
#[macro_use]
extern crate issue_26606_macro;
// @has issue_26606/constant.FOO.html
// @has - '//a[@href="../src/issue_26606/issue-26606.rs.html#11"]' 'source'
// @has - '//a[@href="../src/issue_26606/src-link-external-macro-26606.rs.html#14"]' 'source'
make_item!(FOO);

View File

@ -1,6 +1,9 @@
// ignore-windows
// compile-flags: --no-defaults
// https://github.com/rust-lang/rust/issues/26995
#![crate_name="issue_26995"]
// @has src/issue_26995/dev/null.html
// @has issue_26995/null/index.html '//a/@href' '../../src/issue_26995/dev/null.html'
#[path="/dev/null"]

View File

@ -1,3 +1,6 @@
// https://github.com/rust-lang/rust/issues/27759
#![crate_name="issue_27759"]
#![feature(staged_api)]
#![doc(issue_tracker_base_url = "http://issue_url/")]

View File

@ -2,6 +2,9 @@
// aux-build:empty.rs
// ignore-cross-compile
// https://github.com/rust-lang/rust/issues/27104
#![crate_name="issue_27104"]
// @has issue_27104/index.html
// @!hasraw - 'extern crate std'
// @!hasraw - 'use std::prelude::'