mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Add crate_name
to test so that it can be renamed
This commit is contained in:
parent
a76ec181fb
commit
df5ea58287
@ -1,3 +1,5 @@
|
||||
#![crate_name="issue_29449"]
|
||||
|
||||
// @has issue_29449/struct.Foo.html
|
||||
pub struct Foo;
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![crate_name="issue_29503"]
|
||||
|
||||
use std::fmt;
|
||||
|
||||
// @has issue_29503/trait.MyTrait.html
|
||||
|
@ -1,6 +1,8 @@
|
||||
// aux-build:issue-29584.rs
|
||||
// ignore-cross-compile
|
||||
|
||||
#![crate_name="issue_29584"]
|
||||
|
||||
extern crate issue_29584;
|
||||
|
||||
// @has issue_29584/struct.Foo.html
|
||||
|
@ -2,6 +2,8 @@
|
||||
// aux-build:issue-30109-1.rs
|
||||
// ignore-cross-compile
|
||||
|
||||
#![crate_name="issue_30109"]
|
||||
|
||||
pub mod quux {
|
||||
extern crate issue_30109_1 as bar;
|
||||
use self::bar::Bar;
|
||||
|
@ -1,5 +1,7 @@
|
||||
// compile-flags:--test --cfg feature="bar"
|
||||
|
||||
#![crate_name="issue_30252"]
|
||||
|
||||
/// ```rust
|
||||
/// assert_eq!(cfg!(feature = "bar"), true);
|
||||
/// ```
|
||||
|
@ -1,5 +1,7 @@
|
||||
// @has issue_30366/index.html '//a/@href' 'http://www.rust-lang.org/'
|
||||
|
||||
#![crate_name="issue_30366"]
|
||||
|
||||
/// Describe it. [Link somewhere][1].
|
||||
///
|
||||
/// [1]: http://www.rust-lang.org/
|
||||
|
@ -1,5 +1,7 @@
|
||||
// Test that associated item impls on primitive types don't crash rustdoc
|
||||
|
||||
#![crate_name="issue_31808"]
|
||||
|
||||
pub trait Foo {
|
||||
const BAR: usize;
|
||||
type BAZ;
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![crate_name="issue_31899"]
|
||||
|
||||
// @has issue_31899/index.html
|
||||
// @hasraw - 'Make this line a bit longer.'
|
||||
// @!hasraw - 'rust rust-example-rendered'
|
||||
|
@ -1,6 +1,7 @@
|
||||
#![feature(staged_api)]
|
||||
#![doc(issue_tracker_base_url = "https://issue_url/")]
|
||||
#![unstable(feature = "test", issue = "32374")]
|
||||
#![crate_name="issue_32374"]
|
||||
|
||||
// @matches issue_32374/index.html '//*[@class="item-name"]/span[@class="stab deprecated"]' \
|
||||
// 'Deprecated'
|
||||
|
@ -2,6 +2,8 @@
|
||||
// build-aux-docs
|
||||
// ignore-cross-compile
|
||||
|
||||
#![crate_name="issue_32395"]
|
||||
|
||||
// @has variant_struct/enum.Foo.html
|
||||
// @!hasraw - 'pub qux'
|
||||
// @!hasraw - 'pub(crate) qux'
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![crate_name="issue_32556"]
|
||||
|
||||
/// Blah blah blah
|
||||
/// ```ignore (testing rustdoc's handling of ignore)
|
||||
/// bad_assert!();
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![crate_name="issue_32890"]
|
||||
|
||||
// @has issue_32890/struct.Foo.html
|
||||
pub struct Foo<T>(T);
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![crate_name="issue_33069"]
|
||||
|
||||
pub trait Bar {}
|
||||
|
||||
#[doc(hidden)]
|
||||
|
@ -2,6 +2,8 @@
|
||||
// aux-build:variant-struct.rs
|
||||
// ignore-cross-compile
|
||||
|
||||
#![crate_name="issue_33178_1"]
|
||||
|
||||
// @has issue_33178_1/index.html
|
||||
// @!has - //a/@title empty
|
||||
pub extern crate empty;
|
||||
|
@ -3,6 +3,8 @@
|
||||
// build-aux-docs
|
||||
// ignore-cross-compile
|
||||
|
||||
#![crate_name="issue_33178"]
|
||||
|
||||
// @has issue_33178/index.html
|
||||
// @has - '//a[@title="mod empty"][@href="../empty/index.html"]' empty
|
||||
pub extern crate empty;
|
||||
|
@ -1,3 +1,5 @@
|
||||
#![crate_name="issue_33302"]
|
||||
|
||||
// Ensure constant and array length values are not taken from source
|
||||
// code, which wreaks havoc with macros.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user