Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
a27f3e3fd1e4d16160f8885b6b06665b5319f56c
rust/tests/rustdoc/impl/doc-hidden-trait-implementors-33069.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
255 B
Rust
Raw Normal View History

Add URL to test cases
2023-10-16 16:12:17 -07:00
// https://github.com/rust-lang/rust/issues/33069
Add `crate_name` to test so that it can be renamed
2023-10-16 15:41:04 -07:00
#![crate_name="issue_33069"]
Fix the strip-hidden `ImplStripper` Instead of stripping impls which reference *stripped* items, we keep impls which reference *retained* items. We do this because when we strip an item we immediately return, and do not recurse into it - leaving the contained items non-stripped from the point of view of the `ImplStripper`.
2016-04-18 17:32:00 +02:00
pub trait Bar {}
#[doc(hidden)]
pub mod hidden {
pub struct Foo;
}
Update `tests/rustdoc` to new test syntax
2024-06-21 14:03:08 +02:00
//@ has issue_33069/trait.Bar.html
//@ !has - '//code' 'impl Bar for Foo'
Fix the strip-hidden `ImplStripper` Instead of stripping impls which reference *stripped* items, we keep impls which reference *retained* items. We do this because when we strip an item we immediately return, and do not recurse into it - leaving the contained items non-stripped from the point of view of the `ImplStripper`.
2016-04-18 17:32:00 +02:00
impl Bar for hidden::Foo {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1146ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API