Add ui test for 74672 and 76571

These tests will fall without the next commit.
This commit is contained in:
Lzu Tao 2020-09-11 03:01:25 +00:00
parent 498dab0256
commit 7dd4582f95
3 changed files with 46 additions and 0 deletions

View 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 {}

View 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 {}

View 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;