Skip to content

Commit df5ea58

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

16 files changed

+31
-0
lines changed

tests/rustdoc/issue-29449.rs

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

tests/rustdoc/issue-29503.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![crate_name="issue_29503"]
2+
13
use std::fmt;
24

35
// @has issue_29503/trait.MyTrait.html

tests/rustdoc/issue-29584.rs

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

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

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

tests/rustdoc/issue-30109.rs

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

5+
#![crate_name="issue_30109"]
6+
57
pub mod quux {
68
extern crate issue_30109_1 as bar;
79
use self::bar::Bar;

tests/rustdoc/issue-30252.rs

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

3+
#![crate_name="issue_30252"]
4+
35
/// ```rust
46
/// assert_eq!(cfg!(feature = "bar"), true);
57
/// ```

tests/rustdoc/issue-30366.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// @has issue_30366/index.html '//a/@href' 'http://www.rust-lang.org/'
22

3+
#![crate_name="issue_30366"]
4+
35
/// Describe it. [Link somewhere][1].
46
///
57
/// [1]: http://www.rust-lang.org/

tests/rustdoc/issue-31808.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Test that associated item impls on primitive types don't crash rustdoc
22

3+
#![crate_name="issue_31808"]
4+
35
pub trait Foo {
46
const BAR: usize;
57
type BAZ;

tests/rustdoc/issue-31899.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![crate_name="issue_31899"]
2+
13
// @has issue_31899/index.html
24
// @hasraw - 'Make this line a bit longer.'
35
// @!hasraw - 'rust rust-example-rendered'

tests/rustdoc/issue-32374.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![feature(staged_api)]
22
#![doc(issue_tracker_base_url = "https://issue_url/")]
33
#![unstable(feature = "test", issue = "32374")]
4+
#![crate_name="issue_32374"]
45

56
// @matches issue_32374/index.html '//*[@class="item-name"]/span[@class="stab deprecated"]' \
67
// 'Deprecated'

tests/rustdoc/issue-32395.rs

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

5+
#![crate_name="issue_32395"]
6+
57
// @has variant_struct/enum.Foo.html
68
// @!hasraw - 'pub qux'
79
// @!hasraw - 'pub(crate) qux'

tests/rustdoc/issue-32556.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![crate_name="issue_32556"]
2+
13
/// Blah blah blah
24
/// ```ignore (testing rustdoc's handling of ignore)
35
/// bad_assert!();

tests/rustdoc/issue-32890.rs

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

tests/rustdoc/issue-33069.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![crate_name="issue_33069"]
2+
13
pub trait Bar {}
24

35
#[doc(hidden)]

tests/rustdoc/issue-33178-1.rs

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

5+
#![crate_name="issue_33178_1"]
6+
57
// @has issue_33178_1/index.html
68
// @!has - //a/@title empty
79
pub extern crate empty;

tests/rustdoc/issue-33178.rs

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// build-aux-docs
44
// ignore-cross-compile
55

6+
#![crate_name="issue_33178"]
7+
68
// @has issue_33178/index.html
79
// @has - '//a[@title="mod empty"][@href="../empty/index.html"]' empty
810
pub extern crate empty;

tests/rustdoc/issue-33302.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![crate_name="issue_33302"]
2+
13
// Ensure constant and array length values are not taken from source
24
// code, which wreaks havoc with macros.
35

0 commit comments

Comments
 (0)