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
master
rust/tests/rustdoc/impl/doc-hidden-trait-implementors-33069.rs

14 lines
255 B
Rust
Raw Permalink 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: 1428ms Template: 3ms
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