Update cfg(bootstrap)
This commit is contained in:
parent
a58050b753
commit
e851e3e16e
29 changed files with 26 additions and 143 deletions
|
|
@ -21,18 +21,12 @@
|
|||
#![allow(internal_features)]
|
||||
#![warn(unreachable_pub)]
|
||||
|
||||
#[cfg(not(bootstrap))]
|
||||
#[lang = "pointee_sized"]
|
||||
pub trait PointeeSized {}
|
||||
|
||||
#[cfg(not(bootstrap))]
|
||||
#[lang = "meta_sized"]
|
||||
pub trait MetaSized: PointeeSized {}
|
||||
|
||||
#[cfg(bootstrap)]
|
||||
#[lang = "sized"]
|
||||
pub trait Sized {}
|
||||
#[cfg(not(bootstrap))]
|
||||
#[lang = "sized"]
|
||||
pub trait Sized: MetaSized {}
|
||||
|
||||
|
|
@ -43,19 +37,8 @@ trait Copy {}
|
|||
#[lang = "freeze"]
|
||||
auto trait Freeze {}
|
||||
|
||||
#[cfg(bootstrap)]
|
||||
impl<T: ?Sized> Copy for *mut T {}
|
||||
#[cfg(not(bootstrap))]
|
||||
impl<T: PointeeSized> Copy for *mut T {}
|
||||
|
||||
#[cfg(bootstrap)]
|
||||
#[lang = "drop_in_place"]
|
||||
#[inline]
|
||||
#[allow(unconditional_recursion)]
|
||||
pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
|
||||
drop_in_place(to_drop);
|
||||
}
|
||||
#[cfg(not(bootstrap))]
|
||||
#[lang = "drop_in_place"]
|
||||
#[inline]
|
||||
#[allow(unconditional_recursion)]
|
||||
|
|
|
|||
|
|
@ -8,18 +8,12 @@
|
|||
#![allow(internal_features)]
|
||||
#![warn(unreachable_pub)]
|
||||
|
||||
#[cfg(not(bootstrap))]
|
||||
#[lang = "pointee_sized"]
|
||||
pub trait PointeeSized {}
|
||||
|
||||
#[cfg(not(bootstrap))]
|
||||
#[lang = "meta_sized"]
|
||||
pub trait MetaSized: PointeeSized {}
|
||||
|
||||
#[cfg(bootstrap)]
|
||||
#[lang = "sized"]
|
||||
pub trait Sized {}
|
||||
#[cfg(not(bootstrap))]
|
||||
#[lang = "sized"]
|
||||
pub trait Sized: MetaSized {}
|
||||
|
||||
|
|
@ -31,19 +25,8 @@ trait Copy {}
|
|||
#[lang = "freeze"]
|
||||
auto trait Freeze {}
|
||||
|
||||
#[cfg(bootstrap)]
|
||||
impl<T: ?Sized> Copy for *mut T {}
|
||||
#[cfg(not(bootstrap))]
|
||||
impl<T: PointeeSized> Copy for *mut T {}
|
||||
|
||||
#[cfg(bootstrap)]
|
||||
#[lang = "drop_in_place"]
|
||||
#[inline]
|
||||
#[allow(unconditional_recursion)]
|
||||
pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
|
||||
drop_in_place(to_drop);
|
||||
}
|
||||
#[cfg(not(bootstrap))]
|
||||
#[lang = "drop_in_place"]
|
||||
#[inline]
|
||||
#[allow(unconditional_recursion)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue