rustdoc: extend #[doc(tuple_variadic)]
to fn pointers
The attribute is also renamed `fake_variadic`.
This commit is contained in:
parent
263edd43c5
commit
1169832f2f
21 changed files with 61 additions and 42 deletions
|
@ -996,7 +996,7 @@ impl<T> (T,) {}
|
|||
// Fake impl that's only really used for docs.
|
||||
#[cfg(doc)]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[doc(tuple_variadic)]
|
||||
#[cfg_attr(not(bootstrap), doc(fake_variadic))]
|
||||
/// This trait is implemented on arbitrary-length tuples.
|
||||
impl<T: Clone> Clone for (T,) {
|
||||
fn clone(&self) -> Self {
|
||||
|
@ -1007,7 +1007,7 @@ impl<T: Clone> Clone for (T,) {
|
|||
// Fake impl that's only really used for docs.
|
||||
#[cfg(doc)]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[doc(tuple_variadic)]
|
||||
#[cfg_attr(not(bootstrap), doc(fake_variadic))]
|
||||
/// This trait is implemented on arbitrary-length tuples.
|
||||
impl<T: Copy> Copy for (T,) {
|
||||
// empty
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue