Skip to content

Commit a198aff

Browse files
committedOct 4, 2023
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

+2
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

+2
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

+2
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

+2
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

+2
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

+2
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

+2
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

+2
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

+2
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

+2
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
(

‎tests/rustdoc/issue-25001.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![crate_name="issue_25001"]
2+
13
// @has issue_25001/struct.Foo.html
24
pub struct Foo<T>(T);
35

‎tests/rustdoc/issue-25944.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// compile-flags:--test
22

3+
#![crate_name="issue_25944"]
4+
35
/// ```
46
/// let a = r#"
57
/// foo

‎tests/rustdoc/issue-26606.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
// ignore-cross-compile
33
// build-aux-docs
44

5+
#![crate_name="issue_26606"]
6+
57
// @has issue_26606_macro/macro.make_item.html
68
#[macro_use]
79
extern crate issue_26606_macro;
810

911
// @has issue_26606/constant.FOO.html
10-
// @has - '//a[@href="../src/issue_26606/issue-26606.rs.html#11"]' 'source'
12+
// @has - '//a[@href="../src/issue_26606/issue-26606.rs.html#13"]' 'source'
1113
make_item!(FOO);

‎tests/rustdoc/issue-26995.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// ignore-windows
22
// compile-flags: --no-defaults
33

4+
#![crate_name="issue_26995"]
5+
46
// @has src/issue_26995/dev/null.html
57
// @has issue_26995/null/index.html '//a/@href' '../../src/issue_26995/dev/null.html'
68
#[path="/dev/null"]

‎tests/rustdoc/issue-27104.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// aux-build:empty.rs
33
// ignore-cross-compile
44

5+
#![crate_name="issue_27104"]
6+
57
// @has issue_27104/index.html
68
// @!hasraw - 'extern crate std'
79
// @!hasraw - 'use std::prelude::'

‎tests/rustdoc/issue-27362.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// aux-build:issue-27362-aux.rs
22
// ignore-cross-compile
33

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

68
pub use issue_27362_aux::*;

‎tests/rustdoc/issue-27759.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![crate_name="issue_27759"]
2+
13
#![feature(staged_api)]
24
#![doc(issue_tracker_base_url = "http://issue_url/")]
35

‎tests/rustdoc/issue-27862.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![crate_name="issue_27862"]
2+
13
/// Tests | Table
24
/// ------|-------------
35
/// t = b | id = \|x\| x

‎tests/rustdoc/issue-28478.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![crate_name="issue_28478"]
2+
13
#![feature(associated_type_defaults)]
24

35
// @has issue_28478/trait.Bar.html

‎tests/rustdoc/issue-28927.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
// aux-build:issue-28927-1.rs
33
// ignore-cross-compile
44

5+
#![crate_name="issue_28927"]
6+
57
pub extern crate issue_28927_1 as inner1;
68
pub use inner1 as foo;

0 commit comments

Comments
 (0)
Please sign in to comment.