This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +10
-17
lines changed Expand file tree Collapse file tree 7 files changed +10
-17
lines changed Original file line number Diff line number Diff line change @@ -1072,7 +1072,7 @@ extern "rust-intrinsic" {
10721072 // NOTE: While this makes the intrinsic const stable, we have some custom code in const fn
10731073 // checks that prevent its use within `const fn`.
10741074 #[ rustc_const_stable( feature = "const_transmute" , since = "1.46.0" ) ]
1075- #[ cfg_attr ( not ( bootstrap ) , rustc_diagnostic_item = "transmute" ) ]
1075+ #[ rustc_diagnostic_item = "transmute" ]
10761076 pub fn transmute < T , U > ( e : T ) -> U ;
10771077
10781078 /// Returns `true` if the actual type given as `T` requires drop
Original file line number Diff line number Diff line change 8484#![ feature( const_fn_union) ]
8585#![ feature( const_assume) ]
8686#![ cfg_attr( not( bootstrap) , feature( const_impl_trait) ) ]
87- #![ cfg_attr ( not ( bootstrap ) , feature( const_fn_floating_point_arithmetic) ) ]
88- #![ cfg_attr ( not ( bootstrap ) , feature( const_fn_fn_ptr_basics) ) ]
87+ #![ feature( const_fn_floating_point_arithmetic) ]
88+ #![ feature( const_fn_fn_ptr_basics) ]
8989#![ feature( const_generics) ]
9090#![ feature( const_option) ]
9191#![ feature( const_precise_live_drops) ]
133133#![ feature( untagged_unions) ]
134134#![ feature( unwind_attributes) ]
135135#![ feature( variant_count) ]
136- #![ cfg_attr( bootstrap, feature( doc_alias) ) ]
137136#![ feature( tbm_target_feature) ]
138137#![ feature( sse4a_target_feature) ]
139138#![ feature( arm_target_feature) ]
Original file line number Diff line number Diff line change @@ -79,7 +79,6 @@ pub use index::check_range;
7979#[ lang = "slice" ]
8080#[ cfg( not( test) ) ]
8181impl < T > [ T ] {
82- #[ cfg( not( bootstrap) ) ] // Unused in bootstrap
8382 /// The maximum, inclusive, length such that the slice is no larger than `isize::MAX` bytes.
8483 /// This constant is used in `len` below.
8584 const MAX_LEN_BOUND : usize = {
@@ -108,15 +107,12 @@ impl<T> [T] {
108107 // Only `std` can make this guarantee.
109108 let raw_len = unsafe { crate :: ptr:: Repr { rust : self } . raw . len } ;
110109
111- #[ cfg( not( bootstrap) ) ] // FIXME: executing assume in const eval not supported in bootstrap
112110 // SAFETY: this assume asserts that `raw_len * size_of::<T>() <= isize::MAX`. All
113111 // references must point to one allocation with size at most isize::MAX. Note that we the
114112 // multiplication could appear to overflow until we have assumed the bound. This overflow
115113 // would make additional values appear 'valid' and then `n > 1` the range of permissible
116114 // length would no longer be the full or even a single range.
117- unsafe {
118- crate :: intrinsics:: assume ( raw_len <= Self :: MAX_LEN_BOUND )
119- } ;
115+ unsafe { crate :: intrinsics:: assume ( raw_len <= Self :: MAX_LEN_BOUND ) } ;
120116
121117 raw_len
122118 }
Original file line number Diff line number Diff line change @@ -130,8 +130,7 @@ impl RawWakerVTable {
130130 #[ rustc_promotable]
131131 #[ stable( feature = "futures_api" , since = "1.36.0" ) ]
132132 #[ rustc_const_stable( feature = "futures_api" , since = "1.36.0" ) ]
133- #[ cfg_attr( not( bootstrap) , allow_internal_unstable( const_fn_fn_ptr_basics) ) ]
134- #[ cfg_attr( bootstrap, rustc_allow_const_fn_ptr) ]
133+ #[ allow_internal_unstable( const_fn_fn_ptr_basics) ]
135134 pub const fn new (
136135 clone : unsafe fn ( * const ( ) ) -> RawWaker ,
137136 wake : unsafe fn ( * const ( ) ) ,
Original file line number Diff line number Diff line change 2121#![ feature( nll) ]
2222#![ feature( staged_api) ]
2323#![ feature( const_fn) ]
24- #![ cfg_attr ( not ( bootstrap ) , feature( const_fn_fn_ptr_basics) ) ]
24+ #![ feature( const_fn_fn_ptr_basics) ]
2525#![ feature( allow_internal_unstable) ]
2626#![ feature( decl_macro) ]
2727#![ feature( extern_types) ]
Original file line number Diff line number Diff line change 237237#![ feature( clamp) ]
238238#![ feature( concat_idents) ]
239239#![ feature( const_cstr_unchecked) ]
240- #![ cfg_attr ( not ( bootstrap ) , feature( const_fn_floating_point_arithmetic) ) ]
240+ #![ feature( const_fn_floating_point_arithmetic) ]
241241#![ feature( const_fn_transmute) ]
242242#![ feature( const_fn) ]
243- #![ cfg_attr ( not ( bootstrap ) , feature( const_fn_fn_ptr_basics) ) ]
243+ #![ feature( const_fn_fn_ptr_basics) ]
244244#![ feature( const_ip) ]
245245#![ feature( const_ipv6) ]
246246#![ feature( const_raw_ptr_deref) ]
249249#![ feature( core_intrinsics) ]
250250#![ feature( custom_test_frameworks) ]
251251#![ feature( decl_macro) ]
252- #![ cfg_attr( bootstrap, feature( doc_alias) ) ]
253252#![ feature( doc_cfg) ]
254253#![ feature( doc_keyword) ]
255254#![ feature( doc_masked) ]
Original file line number Diff line number Diff line change 1212# source tarball for a stable release you'll likely see `1.x.0` for rustc and
1313# `0.(x+1).0` for Cargo where they were released on `date`.
1414
15- date: 2020-08-26
15+ date: 2020-10-07
1616rustc: beta
1717cargo: beta
1818
1919# We use a nightly rustfmt to format the source because it solves some
2020# bootstrapping issues with use of new syntax in this repo. If you're looking at
2121# the beta/stable branch, this key should be omitted, as we don't want to depend
2222# on rustfmt from nightly there.
23- rustfmt: nightly-2020-07-12
23+ rustfmt: nightly-2020-10-07
2424
2525# When making a stable release the process currently looks like:
2626#
You can’t perform that action at this time.
0 commit comments