diff options
| author | Michael Howell <michael@notriddle.com> | 2023-10-04 12:08:47 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-10-04 12:13:01 -0700 |
| commit | a198aff4a4b1b83476497438cfc4771fb19c7bc4 (patch) | |
| tree | e05153c9e739fb227b394119883b5aad7deab08e | |
| parent | f306362fb97fadcee44f68817a1d22292458138b (diff) | |
| download | rust-a198aff4a4b1b83476497438cfc4771fb19c7bc4.tar.gz rust-a198aff4a4b1b83476497438cfc4771fb19c7bc4.zip | |
Add `crate_name` to test so that it can be renamed
| -rw-r--r-- | tests/rustdoc/issue-21092.rs | 2 | ||||
| -rw-r--r-- | tests/rustdoc/issue-21474.rs | 2 | ||||
| -rw-r--r-- | tests/rustdoc/issue-21801.rs | 2 | ||||
| -rw-r--r-- | tests/rustdoc/issue-22025.rs | 2 | ||||
| -rw-r--r-- | tests/rustdoc/issue-22038.rs | 2 | ||||
| -rw-r--r-- | tests/rustdoc/issue-23106.rs | 2 | ||||
| -rw-r--r-- | tests/rustdoc/issue-23207.rs | 2 | ||||
| -rw-r--r-- | tests/rustdoc/issue-23511.rs | 2 | ||||
| -rw-r--r-- | tests/rustdoc/issue-23744.rs | 2 | ||||
| -rw-r--r-- | tests/rustdoc/issue-23812.rs | 2 | ||||
| -rw-r--r-- | tests/rustdoc/issue-25001.rs | 2 | ||||
| -rw-r--r-- | tests/rustdoc/issue-25944.rs | 2 | ||||
| -rw-r--r-- | tests/rustdoc/issue-26606.rs | 4 | ||||
| -rw-r--r-- | tests/rustdoc/issue-26995.rs | 2 | ||||
| -rw-r--r-- | tests/rustdoc/issue-27104.rs | 2 | ||||
| -rw-r--r-- | tests/rustdoc/issue-27362.rs | 2 | ||||
| -rw-r--r-- | tests/rustdoc/issue-27759.rs | 2 | ||||
| -rw-r--r-- | tests/rustdoc/issue-27862.rs | 2 | ||||
| -rw-r--r-- | tests/rustdoc/issue-28478.rs | 2 | ||||
| -rw-r--r-- | tests/rustdoc/issue-28927.rs | 2 |
20 files changed, 41 insertions, 1 deletions
diff --git a/tests/rustdoc/issue-21092.rs b/tests/rustdoc/issue-21092.rs index b054145a483..214be755e94 100644 --- a/tests/rustdoc/issue-21092.rs +++ b/tests/rustdoc/issue-21092.rs @@ -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 diff --git a/tests/rustdoc/issue-21474.rs b/tests/rustdoc/issue-21474.rs index 5de26abace6..bedf89236aa 100644 --- a/tests/rustdoc/issue-21474.rs +++ b/tests/rustdoc/issue-21474.rs @@ -1,3 +1,5 @@ +#![crate_name="issue_21474"] + pub use inner::*; mod inner { diff --git a/tests/rustdoc/issue-21801.rs b/tests/rustdoc/issue-21801.rs index 29d2ec64c20..131bf38c3cb 100644 --- a/tests/rustdoc/issue-21801.rs +++ b/tests/rustdoc/issue-21801.rs @@ -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 diff --git a/tests/rustdoc/issue-22025.rs b/tests/rustdoc/issue-22025.rs index a721a15f463..d01c1f5c427 100644 --- a/tests/rustdoc/issue-22025.rs +++ b/tests/rustdoc/issue-22025.rs @@ -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}; diff --git a/tests/rustdoc/issue-22038.rs b/tests/rustdoc/issue-22038.rs index de6cc78707c..52c9280f826 100644 --- a/tests/rustdoc/issue-22038.rs +++ b/tests/rustdoc/issue-22038.rs @@ -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()' diff --git a/tests/rustdoc/issue-23106.rs b/tests/rustdoc/issue-23106.rs index 8cda2fc3380..27c0bd09130 100644 --- a/tests/rustdoc/issue-23106.rs +++ b/tests/rustdoc/issue-23106.rs @@ -1,5 +1,7 @@ // compile-flags:--test +#![crate_name="issue_23106"] + /// ``` /// # /// ``` diff --git a/tests/rustdoc/issue-23207.rs b/tests/rustdoc/issue-23207.rs index 1a4b849ee82..24cba4ad294 100644 --- a/tests/rustdoc/issue-23207.rs +++ b/tests/rustdoc/issue-23207.rs @@ -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 diff --git a/tests/rustdoc/issue-23511.rs b/tests/rustdoc/issue-23511.rs index 21d02842431..d6b931850e2 100644 --- a/tests/rustdoc/issue-23511.rs +++ b/tests/rustdoc/issue-23511.rs @@ -2,6 +2,8 @@ #![feature(rustdoc_internals)] #![no_std] +#![crate_name="issue_23511"] + pub mod str { #![rustc_doc_primitive = "str"] diff --git a/tests/rustdoc/issue-23744.rs b/tests/rustdoc/issue-23744.rs index 642817396b2..45cc1bf3f41 100644 --- a/tests/rustdoc/issue-23744.rs +++ b/tests/rustdoc/issue-23744.rs @@ -1,5 +1,7 @@ // compile-flags:--test +#![crate_name="issue_23744"] + /// Example of rustdoc incorrectly parsing <code>```rust,should_panic</code>. /// /// ```should_panic diff --git a/tests/rustdoc/issue-23812.rs b/tests/rustdoc/issue-23812.rs index 08fd1833bce..43b422fc992 100644 --- a/tests/rustdoc/issue-23812.rs +++ b/tests/rustdoc/issue-23812.rs @@ -1,3 +1,5 @@ +#![crate_name="issue_23812"] + macro_rules! doc { (#[$outer:meta] mod $i:ident { #![$inner:meta] }) => ( diff --git a/tests/rustdoc/issue-25001.rs b/tests/rustdoc/issue-25001.rs index 268fae59496..d20268f176c 100644 --- a/tests/rustdoc/issue-25001.rs +++ b/tests/rustdoc/issue-25001.rs @@ -1,3 +1,5 @@ +#![crate_name="issue_25001"] + // @has issue_25001/struct.Foo.html pub struct Foo<T>(T); diff --git a/tests/rustdoc/issue-25944.rs b/tests/rustdoc/issue-25944.rs index 49625294bbe..17f34315930 100644 --- a/tests/rustdoc/issue-25944.rs +++ b/tests/rustdoc/issue-25944.rs @@ -1,5 +1,7 @@ // compile-flags:--test +#![crate_name="issue_25944"] + /// ``` /// let a = r#" /// foo diff --git a/tests/rustdoc/issue-26606.rs b/tests/rustdoc/issue-26606.rs index d5cb2c710cd..1b62b32a4a7 100644 --- a/tests/rustdoc/issue-26606.rs +++ b/tests/rustdoc/issue-26606.rs @@ -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); diff --git a/tests/rustdoc/issue-26995.rs b/tests/rustdoc/issue-26995.rs index fedc9f51749..e2cad215d67 100644 --- a/tests/rustdoc/issue-26995.rs +++ b/tests/rustdoc/issue-26995.rs @@ -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"] diff --git a/tests/rustdoc/issue-27104.rs b/tests/rustdoc/issue-27104.rs index 9f2fd907114..220df629686 100644 --- a/tests/rustdoc/issue-27104.rs +++ b/tests/rustdoc/issue-27104.rs @@ -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::' diff --git a/tests/rustdoc/issue-27362.rs b/tests/rustdoc/issue-27362.rs index 097e4e3b03d..d2e8879dd25 100644 --- a/tests/rustdoc/issue-27362.rs +++ b/tests/rustdoc/issue-27362.rs @@ -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::*; diff --git a/tests/rustdoc/issue-27759.rs b/tests/rustdoc/issue-27759.rs index 65e0f7cb87b..28ea515d81f 100644 --- a/tests/rustdoc/issue-27759.rs +++ b/tests/rustdoc/issue-27759.rs @@ -1,3 +1,5 @@ +#![crate_name="issue_27759"] + #![feature(staged_api)] #![doc(issue_tracker_base_url = "http://issue_url/")] diff --git a/tests/rustdoc/issue-27862.rs b/tests/rustdoc/issue-27862.rs index 77522f1be23..19adcb94508 100644 --- a/tests/rustdoc/issue-27862.rs +++ b/tests/rustdoc/issue-27862.rs @@ -1,3 +1,5 @@ +#![crate_name="issue_27862"] + /// Tests | Table /// ------|------------- /// t = b | id = \|x\| x diff --git a/tests/rustdoc/issue-28478.rs b/tests/rustdoc/issue-28478.rs index 497276e6826..60ba9090f71 100644 --- a/tests/rustdoc/issue-28478.rs +++ b/tests/rustdoc/issue-28478.rs @@ -1,3 +1,5 @@ +#![crate_name="issue_28478"] + #![feature(associated_type_defaults)] // @has issue_28478/trait.Bar.html diff --git a/tests/rustdoc/issue-28927.rs b/tests/rustdoc/issue-28927.rs index 38a520850b6..ca07add2ba8 100644 --- a/tests/rustdoc/issue-28927.rs +++ b/tests/rustdoc/issue-28927.rs @@ -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; |
