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
ade7ecf90943a7b865a6281112f8b2bbda55dba2
rust/tests/rustdoc/hidden-impls.rs

18 lines
284 B
Rust
Raw Normal View History

rustdoc: Fix a few stripping issues We need to recurse into stripped modules to strip things like impl methods but when doing so we must not add any items to the `retained` set.
2016-06-27 23:10:13 +01:00
#![crate_name = "foo"]
mod hidden {
#[derive(Clone)]
pub struct Foo;
}
#[doc(hidden)]
pub mod __hidden {
pub use hidden::Foo;
}
// @has foo/trait.Clone.html
Update `@!has` name in tests
2022-08-12 00:44:07 -04:00
// @!hasraw - 'Foo'
rustdoc: rename `/implementors` to `/impl.trait` This is shorter, avoids potential conflicts with a crate named `implementors`[^1], and will be less confusing when JS include files are added for type aliases. [^1]: AFAIK, this couldn't actually cause any problems right now, but it's simpler just to make it impossible than relying on never having a file named `trait.Foo.js` in the crate data area.
2023-10-05 18:44:40 -07:00
// @has trait.impl/core/clone/trait.Clone.js
Update `@!has` name in tests
2022-08-12 00:44:07 -04:00
// @!hasraw - 'Foo'
rustdoc: Fix a few stripping issues We need to recurse into stripped modules to strip things like impl methods but when doing so we must not add any items to the `retained` set.
2016-06-27 23:10:13 +01:00
pub use std::clone::Clone;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 958ms 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