Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
300901b70509a0af2d971aa6f6104300da24212c
rust/tests/ui/feature-gates/feature-gate-rustdoc_internals.rs

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

11 lines
255 B
Rust
Raw Normal View History

Update error message for doc(keyword)
2021-11-08 20:00:22 +01:00
#[doc(keyword = "match")] //~ ERROR: `#[doc(keyword)]` is meant for internal use only
Add feature gate test for "rustdoc_internal" feature
2021-11-08 17:27:56 +01:00
/// wonderful
mod foo {}
rustdoc: show tuple impls as `impl Trait for (T, ...)` This commit adds a new unstable attribute, `#[doc(tuple_varadic)]`, that shows a 1-tuple as `(T, ...)` instead of just `(T,)`, and links to a section in the tuple primitive docs that talks about these.
2022-06-08 19:26:51 -07:00
trait Mine {}
rustdoc: extend `#[doc(tuple_variadic)]` to fn pointers The attribute is also renamed `fake_variadic`.
2022-06-16 09:50:57 -07:00
#[doc(fake_variadic)] //~ ERROR: `#[doc(fake_variadic)]` is meant for internal use only
rustdoc: show tuple impls as `impl Trait for (T, ...)` This commit adds a new unstable attribute, `#[doc(tuple_varadic)]`, that shows a 1-tuple as `(T, ...)` instead of just `(T,)`, and links to a section in the tuple primitive docs that talks about these.
2022-06-08 19:26:51 -07:00
impl<T> Mine for (T,) {}
Add feature gate test for "rustdoc_internal" feature
2021-11-08 17:27:56 +01:00
fn main() {}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1203ms Template: 4ms
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