Skip to content

Commit fb8d070

Browse files
committed
Add ui test for 74672 and 76571
These tests will fall without the next commit.
1 parent ee04f9a commit fb8d070

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// aux-build:realcore.rs
2+
3+
#![crate_name = "real_gimli"]
4+
#![feature(staged_api, extremely_unstable)]
5+
#![unstable(feature = "rustc_private", issue = "none")]
6+
7+
extern crate realcore;
8+
9+
#[unstable(feature = "rustc_private", issue = "none")]
10+
pub struct EndianSlice;
11+
12+
#[unstable(feature = "rustc_private", issue = "none")]
13+
impl realcore::Deref for EndianSlice {}
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#![crate_name = "realcore"]
2+
#![feature(staged_api)]
3+
#![unstable(feature = "extremely_unstable", issue = "none")]
4+
5+
#[unstable(feature = "extremely_unstable_foo", issue = "none")]
6+
pub struct Foo {}
7+
8+
#[unstable(feature = "extremely_unstable_foo", issue = "none")]
9+
pub trait Join {}
10+
11+
#[unstable(feature = "extremely_unstable_foo", issue = "none")]
12+
impl Join for Foo {}
13+
14+
#[stable(feature = "faked_deref", since = "1.47.0")]
15+
pub trait Deref {}

src/test/rustdoc/issue-75588.rs

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// ignore-tidy-linelength
2+
// aux-build:realcore.rs
3+
// aux-build:real_gimli.rs
4+
5+
// Ensure unstably exported traits have their Implementors sections.
6+
7+
#![crate_name = "foo"]
8+
#![feature(extremely_unstable_foo)]
9+
10+
extern crate realcore;
11+
extern crate real_gimli;
12+
13+
// issue #74672
14+
// @!has foo/trait.Deref.html '//*[@id="impl-Deref-for-EndianSlice"]//code' 'impl Deref for EndianSlice'
15+
pub use realcore::Deref;
16+
17+
// @has foo/trait.Join.html '//*[@id="impl-Join-for-Foo"]//code' 'impl Join for Foo'
18+
pub use realcore::Join;

0 commit comments

Comments
 (0)