Skip to content

Commit c3a2379

Browse files
committed
Update cfg(bootstrap)
1 parent 20c9021 commit c3a2379

File tree

4 files changed

+0
-38
lines changed

4 files changed

+0
-38
lines changed

core/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ debug_typeid = []
2929
[lints.rust.unexpected_cfgs]
3030
level = "warn"
3131
check-cfg = [
32-
# #[cfg(bootstrap)] loongarch32
33-
'cfg(target_arch, values("loongarch32"))',
3432
'cfg(no_fp_fmt_parse)',
3533
# core use #[path] imports to portable-simd `core_simd` crate
3634
# and to stdarch `core_arch` crate which messes-up with Cargo list

rtstartup/rsbegin.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,12 @@
2121
#![allow(internal_features)]
2222
#![warn(unreachable_pub)]
2323

24-
#[cfg(not(bootstrap))]
2524
#[lang = "pointee_sized"]
2625
pub trait PointeeSized {}
2726

28-
#[cfg(not(bootstrap))]
2927
#[lang = "meta_sized"]
3028
pub trait MetaSized: PointeeSized {}
3129

32-
#[cfg(bootstrap)]
33-
#[lang = "sized"]
34-
pub trait Sized {}
35-
#[cfg(not(bootstrap))]
3630
#[lang = "sized"]
3731
pub trait Sized: MetaSized {}
3832

@@ -43,19 +37,8 @@ trait Copy {}
4337
#[lang = "freeze"]
4438
auto trait Freeze {}
4539

46-
#[cfg(bootstrap)]
47-
impl<T: ?Sized> Copy for *mut T {}
48-
#[cfg(not(bootstrap))]
4940
impl<T: PointeeSized> Copy for *mut T {}
5041

51-
#[cfg(bootstrap)]
52-
#[lang = "drop_in_place"]
53-
#[inline]
54-
#[allow(unconditional_recursion)]
55-
pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
56-
drop_in_place(to_drop);
57-
}
58-
#[cfg(not(bootstrap))]
5942
#[lang = "drop_in_place"]
6043
#[inline]
6144
#[allow(unconditional_recursion)]

rtstartup/rsend.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,12 @@
88
#![allow(internal_features)]
99
#![warn(unreachable_pub)]
1010

11-
#[cfg(not(bootstrap))]
1211
#[lang = "pointee_sized"]
1312
pub trait PointeeSized {}
1413

15-
#[cfg(not(bootstrap))]
1614
#[lang = "meta_sized"]
1715
pub trait MetaSized: PointeeSized {}
1816

19-
#[cfg(bootstrap)]
20-
#[lang = "sized"]
21-
pub trait Sized {}
22-
#[cfg(not(bootstrap))]
2317
#[lang = "sized"]
2418
pub trait Sized: MetaSized {}
2519

@@ -31,19 +25,8 @@ trait Copy {}
3125
#[lang = "freeze"]
3226
auto trait Freeze {}
3327

34-
#[cfg(bootstrap)]
35-
impl<T: ?Sized> Copy for *mut T {}
36-
#[cfg(not(bootstrap))]
3728
impl<T: PointeeSized> Copy for *mut T {}
3829

39-
#[cfg(bootstrap)]
40-
#[lang = "drop_in_place"]
41-
#[inline]
42-
#[allow(unconditional_recursion)]
43-
pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
44-
drop_in_place(to_drop);
45-
}
46-
#[cfg(not(bootstrap))]
4730
#[lang = "drop_in_place"]
4831
#[inline]
4932
#[allow(unconditional_recursion)]

std/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,6 @@ test = true
157157
[lints.rust.unexpected_cfgs]
158158
level = "warn"
159159
check-cfg = [
160-
# #[cfg(bootstrap)] loongarch32
161-
'cfg(target_arch, values("loongarch32"))',
162160
# std use #[path] imports to portable-simd `std_float` crate
163161
# and to the `backtrace` crate which messes-up with Cargo list
164162
# of declared features, we therefor expect any feature cfg

0 commit comments

Comments
 (0)