Skip to content

Commit 20fc215

Browse files
committed
Normalize spaces in lang attributes.
1 parent 9cb90f4 commit 20fc215

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/libcore/marker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ pub trait Sized {
122122
/// [RFC982]: https://github.com/rust-lang/rfcs/blob/master/text/0982-dst-coercion.md
123123
/// [nomicon-coerce]: ../../nomicon/coercions.html
124124
#[unstable(feature = "unsize", issue = "27732")]
125-
#[lang="unsize"]
125+
#[lang = "unsize"]
126126
pub trait Unsize<T: ?Sized> {
127127
// Empty.
128128
}

src/libcore/ops/unsize.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ use marker::Unsize;
4242
/// [unsize]: ../marker/trait.Unsize.html
4343
/// [nomicon-coerce]: ../../nomicon/coercions.html
4444
#[unstable(feature = "coerce_unsized", issue = "27732")]
45-
#[lang="coerce_unsized"]
45+
#[lang = "coerce_unsized"]
4646
pub trait CoerceUnsized<T> {
4747
// Empty.
4848
}

src/libcore/ptr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub use intrinsics::write_bytes;
5656
/// This has all the same safety problems as `ptr::read` with respect to
5757
/// invalid pointers, types, and double drops.
5858
#[stable(feature = "drop_in_place", since = "1.8.0")]
59-
#[lang="drop_in_place"]
59+
#[lang = "drop_in_place"]
6060
#[allow(unconditional_recursion)]
6161
pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
6262
// Code here does not matter - this is replaced by the

src/rtstartup/rsbegin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ trait Copy {}
3838
trait Freeze {}
3939
impl Freeze for .. {}
4040

41-
#[lang="drop_in_place"]
41+
#[lang = "drop_in_place"]
4242
#[inline]
4343
#[allow(unconditional_recursion)]
4444
pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {

src/rtstartup/rsend.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ trait Copy {}
2525
trait Freeze {}
2626
impl Freeze for .. {}
2727

28-
#[lang="drop_in_place"]
28+
#[lang = "drop_in_place"]
2929
#[inline]
3030
#[allow(unconditional_recursion)]
3131
pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {

0 commit comments

Comments
 (0)