Skip to content

Commit

Permalink
Add crate_name to test so that it can be renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
notriddle committed Oct 4, 2023
1 parent f306362 commit a198aff
Show file tree
Hide file tree
Showing 20 changed files with 41 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/rustdoc/issue-21092.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// aux-build:issue-21092.rs
// ignore-cross-compile

#![crate_name="issue_21092"]

extern crate issue_21092;

// @has issue_21092/struct.Bar.html
Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/issue-21474.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![crate_name="issue_21474"]

pub use inner::*;

mod inner {
Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/issue-21801.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// aux-build:issue-21801.rs
// ignore-cross-compile

#![crate_name="issue_21801"]

extern crate issue_21801;

// @has issue_21801/struct.Foo.html
Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/issue-22025.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// aux-build:issue-22025.rs
// ignore-cross-compile

#![crate_name="issue_22025"]

extern crate issue_22025;

pub use issue_22025::foo::{Foo, Bar};
2 changes: 2 additions & 0 deletions tests/rustdoc/issue-22038.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![crate_name="issue_22038"]

extern "C" {
// @has issue_22038/fn.foo1.html \
// '//pre[@class="rust item-decl"]' 'pub unsafe extern "C" fn foo1()'
Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/issue-23106.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// compile-flags:--test

#![crate_name="issue_23106"]

/// ```
/// #
/// ```
Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/issue-23207.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// aux-build:issue-23207-2.rs
// ignore-cross-compile

#![crate_name="issue_23207"]

extern crate issue_23207_2;

// @has issue_23207/fmt/index.html
Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/issue-23511.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#![feature(rustdoc_internals)]
#![no_std]

#![crate_name="issue_23511"]

pub mod str {
#![rustc_doc_primitive = "str"]

Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/issue-23744.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// compile-flags:--test

#![crate_name="issue_23744"]

/// Example of rustdoc incorrectly parsing <code>```rust,should_panic</code>.
///
/// ```should_panic
Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/issue-23812.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![crate_name="issue_23812"]

macro_rules! doc {
(#[$outer:meta] mod $i:ident { #![$inner:meta] }) =>
(
Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/issue-25001.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![crate_name="issue_25001"]

// @has issue_25001/struct.Foo.html
pub struct Foo<T>(T);

Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/issue-25944.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// compile-flags:--test

#![crate_name="issue_25944"]

/// ```
/// let a = r#"
/// foo
Expand Down
4 changes: 3 additions & 1 deletion tests/rustdoc/issue-26606.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
// ignore-cross-compile
// build-aux-docs

#![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/issue-26606.rs.html#13"]' 'source'
make_item!(FOO);
2 changes: 2 additions & 0 deletions tests/rustdoc/issue-26995.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// ignore-windows
// compile-flags: --no-defaults

#![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"]
Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/issue-27104.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// aux-build:empty.rs
// ignore-cross-compile

#![crate_name="issue_27104"]

// @has issue_27104/index.html
// @!hasraw - 'extern crate std'
// @!hasraw - 'use std::prelude::'
Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/issue-27362.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// aux-build:issue-27362-aux.rs
// ignore-cross-compile

#![crate_name="issue_27362"]

extern crate issue_27362_aux;

pub use issue_27362_aux::*;
Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/issue-27759.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![crate_name="issue_27759"]

#![feature(staged_api)]
#![doc(issue_tracker_base_url = "http://issue_url/")]

Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/issue-27862.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![crate_name="issue_27862"]

/// Tests | Table
/// ------|-------------
/// t = b | id = \|x\| x
Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/issue-28478.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![crate_name="issue_28478"]

#![feature(associated_type_defaults)]

// @has issue_28478/trait.Bar.html
Expand Down
2 changes: 2 additions & 0 deletions tests/rustdoc/issue-28927.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
// aux-build:issue-28927-1.rs
// ignore-cross-compile

#![crate_name="issue_28927"]

pub extern crate issue_28927_1 as inner1;
pub use inner1 as foo;

0 comments on commit a198aff

Please sign in to comment.