Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit a198aff

Browse files
committed
Add crate_name to test so that it can be renamed
1 parent f306362 commit a198aff

20 files changed

+41
-1
lines changed

tests/rustdoc/issue-21092.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// aux-build:issue-21092.rs
22
// ignore-cross-compile
33

4+
#![crate_name="issue_21092"]
5+
46
extern crate issue_21092;
57

68
// @has issue_21092/struct.Bar.html

tests/rustdoc/issue-21474.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![crate_name="issue_21474"]
2+
13
pub use inner::*;
24

35
mod inner {

tests/rustdoc/issue-21801.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// aux-build:issue-21801.rs
22
// ignore-cross-compile
33

4+
#![crate_name="issue_21801"]
5+
46
extern crate issue_21801;
57

68
// @has issue_21801/struct.Foo.html

tests/rustdoc/issue-22025.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// aux-build:issue-22025.rs
22
// ignore-cross-compile
33

4+
#![crate_name="issue_22025"]
5+
46
extern crate issue_22025;
57

68
pub use issue_22025::foo::{Foo, Bar};

tests/rustdoc/issue-22038.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![crate_name="issue_22038"]
2+
13
extern "C" {
24
// @has issue_22038/fn.foo1.html \
35
// '//pre[@class="rust item-decl"]' 'pub unsafe extern "C" fn foo1()'

tests/rustdoc/issue-23106.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// compile-flags:--test
22

3+
#![crate_name="issue_23106"]
4+
35
/// ```
46
/// #
57
/// ```

tests/rustdoc/issue-23207.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// aux-build:issue-23207-2.rs
33
// ignore-cross-compile
44

5+
#![crate_name="issue_23207"]
6+
57
extern crate issue_23207_2;
68

79
// @has issue_23207/fmt/index.html

tests/rustdoc/issue-23511.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#![feature(rustdoc_internals)]
33
#![no_std]
44

5+
#![crate_name="issue_23511"]
6+
57
pub mod str {
68
#![rustc_doc_primitive = "str"]
79

tests/rustdoc/issue-23744.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// compile-flags:--test
22

3+
#![crate_name="issue_23744"]
4+
35
/// Example of rustdoc incorrectly parsing <code>```rust,should_panic</code>.
46
///
57
/// ```should_panic

tests/rustdoc/issue-23812.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![crate_name="issue_23812"]
2+
13
macro_rules! doc {
24
(#[$outer:meta] mod $i:ident { #![$inner:meta] }) =>
35
(

0 commit comments

Comments
 (0)