Normalize spaces in lang attributes.
This commit is contained in:
parent
9cb90f4e23
commit
20fc215323
5 changed files with 5 additions and 5 deletions
|
@ -122,7 +122,7 @@ pub trait Sized {
|
||||||
/// [RFC982]: https://github.com/rust-lang/rfcs/blob/master/text/0982-dst-coercion.md
|
/// [RFC982]: https://github.com/rust-lang/rfcs/blob/master/text/0982-dst-coercion.md
|
||||||
/// [nomicon-coerce]: ../../nomicon/coercions.html
|
/// [nomicon-coerce]: ../../nomicon/coercions.html
|
||||||
#[unstable(feature = "unsize", issue = "27732")]
|
#[unstable(feature = "unsize", issue = "27732")]
|
||||||
#[lang="unsize"]
|
#[lang = "unsize"]
|
||||||
pub trait Unsize<T: ?Sized> {
|
pub trait Unsize<T: ?Sized> {
|
||||||
// Empty.
|
// Empty.
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@ use marker::Unsize;
|
||||||
/// [unsize]: ../marker/trait.Unsize.html
|
/// [unsize]: ../marker/trait.Unsize.html
|
||||||
/// [nomicon-coerce]: ../../nomicon/coercions.html
|
/// [nomicon-coerce]: ../../nomicon/coercions.html
|
||||||
#[unstable(feature = "coerce_unsized", issue = "27732")]
|
#[unstable(feature = "coerce_unsized", issue = "27732")]
|
||||||
#[lang="coerce_unsized"]
|
#[lang = "coerce_unsized"]
|
||||||
pub trait CoerceUnsized<T> {
|
pub trait CoerceUnsized<T> {
|
||||||
// Empty.
|
// Empty.
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,7 @@ pub use intrinsics::write_bytes;
|
||||||
/// This has all the same safety problems as `ptr::read` with respect to
|
/// This has all the same safety problems as `ptr::read` with respect to
|
||||||
/// invalid pointers, types, and double drops.
|
/// invalid pointers, types, and double drops.
|
||||||
#[stable(feature = "drop_in_place", since = "1.8.0")]
|
#[stable(feature = "drop_in_place", since = "1.8.0")]
|
||||||
#[lang="drop_in_place"]
|
#[lang = "drop_in_place"]
|
||||||
#[allow(unconditional_recursion)]
|
#[allow(unconditional_recursion)]
|
||||||
pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
|
pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
|
||||||
// Code here does not matter - this is replaced by the
|
// Code here does not matter - this is replaced by the
|
||||||
|
|
|
@ -38,7 +38,7 @@ trait Copy {}
|
||||||
trait Freeze {}
|
trait Freeze {}
|
||||||
impl Freeze for .. {}
|
impl Freeze for .. {}
|
||||||
|
|
||||||
#[lang="drop_in_place"]
|
#[lang = "drop_in_place"]
|
||||||
#[inline]
|
#[inline]
|
||||||
#[allow(unconditional_recursion)]
|
#[allow(unconditional_recursion)]
|
||||||
pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
|
pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
|
||||||
|
|
|
@ -25,7 +25,7 @@ trait Copy {}
|
||||||
trait Freeze {}
|
trait Freeze {}
|
||||||
impl Freeze for .. {}
|
impl Freeze for .. {}
|
||||||
|
|
||||||
#[lang="drop_in_place"]
|
#[lang = "drop_in_place"]
|
||||||
#[inline]
|
#[inline]
|
||||||
#[allow(unconditional_recursion)]
|
#[allow(unconditional_recursion)]
|
||||||
pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
|
pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue