try to work around rustdoc bug, and other rustdoc adjustments
This commit is contained in:
parent
590c1c9966
commit
0cbe1cc992
5 changed files with 10 additions and 5 deletions
|
|
@ -31,7 +31,7 @@ use crate::{fmt, intrinsics, ptr, ub_checks};
|
|||
issue = "none"
|
||||
)]
|
||||
pub unsafe trait ZeroablePrimitive: Sized + Copy + private::Sealed {
|
||||
#[doc(hidden)]
|
||||
/// A type like `Self` but with a niche that includes zero.
|
||||
type NonZeroInner: Sized + Copy;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,8 @@ where
|
|||
//@ has - '//h3[@class="code-header"]' 'impl<B> Send for Switch<B>where <B as Signal>::Item: Send'
|
||||
//@ has - '//h3[@class="code-header"]' 'impl<B> Sync for Switch<B>where <B as Signal>::Item: Sync'
|
||||
//@ count - '//*[@id="implementations-list"]//*[@class="impl"]' 0
|
||||
//@ count - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]' 6
|
||||
//@ count - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]' 7
|
||||
// The number here will need updating when new auto traits are added: ^
|
||||
pub struct Switch<B: Signal> {
|
||||
pub inner: <B as Signal2>::Item2,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,13 +1,15 @@
|
|||
#![crate_name = "foo"]
|
||||
#![feature(negative_impls, freeze_impls, freeze)]
|
||||
#![feature(negative_impls, freeze_impls, freeze, unsafe_unpin)]
|
||||
|
||||
pub struct Foo;
|
||||
|
||||
//@ has foo/struct.Foo.html
|
||||
//@ !hasraw - 'Auto Trait Implementations'
|
||||
// Manually un-implement all auto traits for Foo:
|
||||
impl !Send for Foo {}
|
||||
impl !Sync for Foo {}
|
||||
impl !std::marker::Freeze for Foo {}
|
||||
impl !std::marker::UnsafeUnpin for Foo {}
|
||||
impl !std::marker::Unpin for Foo {}
|
||||
impl !std::panic::RefUnwindSafe for Foo {}
|
||||
impl !std::panic::UnwindSafe for Foo {}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
//@ has - '//h3[@class="code-header"]' 'impl<T> Send for Foo<T>where T: Send'
|
||||
//@ has - '//h3[@class="code-header"]' 'impl<T> Sync for Foo<T>where T: Sync'
|
||||
//@ count - '//*[@id="implementations-list"]//*[@class="impl"]' 0
|
||||
//@ count - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]' 6
|
||||
//@ count - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]' 7
|
||||
// The number here will need updating when new auto traits are added: ^
|
||||
pub struct Foo<T> {
|
||||
field: T,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@
|
|||
// 'impl<T> Send for Foo<T>'
|
||||
//
|
||||
//@ count - '//*[@id="trait-implementations-list"]//*[@class="impl"]' 1
|
||||
//@ count - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]' 5
|
||||
//@ count - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]' 6
|
||||
// The number here will need updating when new auto traits are added: ^
|
||||
pub struct Foo<T> {
|
||||
field: T,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue