mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
Add ui test for 74672 and 76571
These tests will fall without the next commit.
This commit is contained in:
parent
498dab0256
commit
7dd4582f95
13
src/test/rustdoc/auxiliary/real_gimli.rs
Normal file
13
src/test/rustdoc/auxiliary/real_gimli.rs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
// aux-build:realcore.rs
|
||||||
|
|
||||||
|
#![crate_name = "real_gimli"]
|
||||||
|
#![feature(staged_api, extremely_unstable)]
|
||||||
|
#![unstable(feature = "rustc_private", issue = "none")]
|
||||||
|
|
||||||
|
extern crate realcore;
|
||||||
|
|
||||||
|
#[unstable(feature = "rustc_private", issue = "none")]
|
||||||
|
pub struct EndianSlice;
|
||||||
|
|
||||||
|
#[unstable(feature = "rustc_private", issue = "none")]
|
||||||
|
impl realcore::Deref for EndianSlice {}
|
15
src/test/rustdoc/auxiliary/realcore.rs
Normal file
15
src/test/rustdoc/auxiliary/realcore.rs
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#![crate_name = "realcore"]
|
||||||
|
#![feature(staged_api)]
|
||||||
|
#![unstable(feature = "extremely_unstable", issue = "none")]
|
||||||
|
|
||||||
|
#[unstable(feature = "extremely_unstable_foo", issue = "none")]
|
||||||
|
pub struct Foo {}
|
||||||
|
|
||||||
|
#[unstable(feature = "extremely_unstable_foo", issue = "none")]
|
||||||
|
pub trait Join {}
|
||||||
|
|
||||||
|
#[unstable(feature = "extremely_unstable_foo", issue = "none")]
|
||||||
|
impl Join for Foo {}
|
||||||
|
|
||||||
|
#[stable(feature = "faked_deref", since = "1.47.0")]
|
||||||
|
pub trait Deref {}
|
18
src/test/rustdoc/issue-75588.rs
Normal file
18
src/test/rustdoc/issue-75588.rs
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
// ignore-tidy-linelength
|
||||||
|
// aux-build:realcore.rs
|
||||||
|
// aux-build:real_gimli.rs
|
||||||
|
|
||||||
|
// Ensure unstably exported traits have their Implementors sections.
|
||||||
|
|
||||||
|
#![crate_name = "foo"]
|
||||||
|
#![feature(extremely_unstable_foo)]
|
||||||
|
|
||||||
|
extern crate realcore;
|
||||||
|
extern crate real_gimli;
|
||||||
|
|
||||||
|
// issue #74672
|
||||||
|
// @!has foo/trait.Deref.html '//*[@id="impl-Deref-for-EndianSlice"]//code' 'impl Deref for EndianSlice'
|
||||||
|
pub use realcore::Deref;
|
||||||
|
|
||||||
|
// @has foo/trait.Join.html '//*[@id="impl-Join-for-Foo"]//code' 'impl Join for Foo'
|
||||||
|
pub use realcore::Join;
|
Loading…
Reference in New Issue
Block a user