Rollup merge of #116432 - notriddle:master, r=fmease · rust-lang/rust@4a14a80

25 files changed

lines changed

Original file line numberDiff line numberDiff line change

@@ -1,3 +1,6 @@

1+

// https://github.com/rust-lang/rust/issues/25001

2+

#![crate_name="issue_25001"]

3+
14

// @has issue_25001/struct.Foo.html

25

pub struct Foo<T>(T);

36
Original file line numberDiff line numberDiff line change

@@ -1,3 +1,6 @@

1+

// https://github.com/rust-lang/rust/issues/28478

2+

#![crate_name="issue_28478"]

3+
14

#![feature(associated_type_defaults)]

25
36

// @has issue_28478/trait.Bar.html

Original file line numberDiff line numberDiff line change

@@ -1,3 +1,6 @@

1+

// https://github.com/rust-lang/rust/issues/21474

2+

#![crate_name="issue_21474"]

3+
14

pub use inner::*;

25
36

mod inner {

Original file line numberDiff line numberDiff line change

@@ -1,6 +1,9 @@

11

// aux-build:issue-22025.rs

22

// ignore-cross-compile

33
4+

// https://github.com/rust-lang/rust/issues/22025

5+

#![crate_name="issue_22025"]

6+
47

extern crate issue_22025;

58
69

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

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,10 @@

1+

// compile-flags:--test

2+
3+

// https://github.com/rust-lang/rust/issues/23106

4+

#![crate_name="issue_23106"]

5+
6+

/// ```

7+

/// #

8+

/// ```

9+

pub fn main() {

10+

}

Original file line numberDiff line numberDiff line change

@@ -1,5 +1,8 @@

11

// compile-flags:--test

22
3+

// https://github.com/rust-lang/rust/issues/23744

4+

#![crate_name="issue_23744"]

5+
36

/// Example of rustdoc incorrectly parsing <code>```rust,should_panic</code>.

47

///

58

/// ```should_panic

Original file line numberDiff line numberDiff line change

@@ -1,5 +1,8 @@

11

// compile-flags:--test

22
3+

// https://github.com/rust-lang/rust/issues/25944

4+

#![crate_name="issue_25944"]

5+
36

/// ```

47

/// let a = r#"

58

/// foo

Original file line numberDiff line numberDiff line change

@@ -1,3 +1,6 @@

1+

// https://github.com/rust-lang/rust/issues/22038

2+

#![crate_name="issue_22038"]

3+
14

extern "C" {

25

// @has issue_22038/fn.foo1.html \

36

// '//pre[@class="rust item-decl"]' 'pub unsafe extern "C" fn foo1()'

Original file line numberDiff line numberDiff line change

@@ -2,5 +2,8 @@

22

// aux-build:issue-28927-1.rs

33

// ignore-cross-compile

44
5+

// https://github.com/rust-lang/rust/issues/28927

6+

#![crate_name="issue_28927"]

7+
58

pub extern crate issue_28927_1 as inner1;

69

pub use inner1 as foo;

Original file line numberDiff line numberDiff line change

@@ -1,6 +1,9 @@

11

// aux-build:issue-21092.rs

22

// ignore-cross-compile

33
4+

// https://github.com/rust-lang/rust/issues/21092

5+

#![crate_name="issue_21092"]

6+
47

extern crate issue_21092;

58
69

// @has issue_21092/struct.Bar.html