Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions tests/rustdoc-html/doc-hidden-method-13698.rs

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
pub trait Foo {
#[doc(hidden)]
fn foo(&self) {}
fn not_hidden(&self) {}
}

impl Foo for i32 {}
22 changes: 22 additions & 0 deletions tests/rustdoc-html/reexport/doc-hidden-method-13698.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//@ aux-build:issue-13698.rs
//@ ignore-cross-compile

// https://github.com/rust-lang/rust/issues/13698
#![crate_name="issue_13698"]

extern crate issue_13698;

pub struct Foo;
//@ has 'issue_13698/struct.Foo.html'
// There is only one visible trait impl method (from the `Foo` trait).
//@ count - '//*[@id="trait-implementations-list"]//*[@class="method trait-impl"]' 1
//@ has - '//*[@id="trait-implementations-list"]//*[@class="method trait-impl"]' \
// 'fn not_hidden(&self)'
impl issue_13698::Foo for Foo {}

pub trait Bar {
#[doc(hidden)]
fn bar(&self) {}
}

impl Bar for Foo {}
Loading