File tree 14 files changed +2
-30
lines changed
rustc_data_structures/src
14 files changed +2
-30
lines changed Original file line number Diff line number Diff line change 11
11
html_root_url = "https://doc.rust-lang.org/nightly/" ,
12
12
test( no_crate_inject, attr( deny( warnings) ) )
13
13
) ]
14
- #![ feature( core_intrinsics) ]
15
14
#![ feature( dropck_eyepatch) ]
16
15
#![ feature( new_uninit) ]
17
16
#![ feature( maybe_uninit_slice) ]
@@ -24,7 +23,6 @@ use smallvec::SmallVec;
24
23
use std:: alloc:: Layout ;
25
24
use std:: cell:: { Cell , RefCell } ;
26
25
use std:: cmp;
27
- use std:: intrinsics;
28
26
use std:: marker:: { PhantomData , Send } ;
29
27
use std:: mem:: { self , MaybeUninit } ;
30
28
use std:: ptr;
@@ -122,7 +120,7 @@ impl<T> TypedArena<T> {
122
120
123
121
unsafe {
124
122
if mem:: size_of :: < T > ( ) == 0 {
125
- self . ptr . set ( intrinsics :: arith_offset ( self . ptr . get ( ) as * mut u8 , 1 ) as * mut T ) ;
123
+ self . ptr . set ( ( self . ptr . get ( ) as * mut u8 ) . wrapping_offset ( 1 ) as * mut T ) ;
126
124
let ptr = mem:: align_of :: < T > ( ) as * mut T ;
127
125
// Don't drop the object. This `write` is equivalent to `forget`.
128
126
ptr:: write ( ptr, object) ;
Original file line number Diff line number Diff line change 5
5
//! This API is completely unstable and subject to change.
6
6
7
7
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/" , test( attr( deny( warnings) ) ) ) ]
8
- #![ feature( bool_to_option) ]
9
8
#![ feature( box_syntax) ]
10
9
#![ feature( const_fn) ] // For the `transmute` in `P::new`
11
10
#![ feature( const_panic) ]
12
- #![ feature( const_fn_transmute) ]
13
11
#![ feature( crate_visibility_modifier) ]
14
12
#![ feature( label_break_value) ]
15
13
#![ feature( nll) ]
16
14
#![ feature( or_patterns) ]
17
- #![ feature( try_trait) ]
18
- #![ feature( unicode_internals) ]
19
15
#![ recursion_limit = "256" ]
20
16
21
17
#[ macro_use]
Original file line number Diff line number Diff line change 8
8
#![ feature( or_patterns) ]
9
9
#![ feature( trusted_len) ]
10
10
#![ feature( associated_type_bounds) ]
11
- #![ feature( const_fn) ] // for rustc_index::newtype_index
12
- #![ feature( const_panic) ] // for rustc_index::newtype_index
13
11
#![ recursion_limit = "256" ]
14
12
15
13
//! This crate contains codegen code that is used by all codegen backends (LLVM and others).
Original file line number Diff line number Diff line change 11
11
#![ feature( control_flow_enum) ]
12
12
#![ feature( in_band_lifetimes) ]
13
13
#![ feature( unboxed_closures) ]
14
- #![ feature( generators) ]
15
14
#![ feature( generator_trait) ]
16
15
#![ feature( fn_traits) ]
17
16
#![ feature( int_bits_const) ]
27
26
#![ feature( thread_id_value) ]
28
27
#![ feature( extend_one) ]
29
28
#![ feature( const_panic) ]
30
- #![ feature( const_generics ) ]
29
+ #![ feature( min_const_generics ) ]
31
30
#![ feature( once_cell) ]
32
31
#![ allow( rustc:: default_hash_types) ]
33
32
Original file line number Diff line number Diff line change 1
1
#![ feature( bool_to_option) ]
2
- #![ feature( cow_is_borrowed) ]
3
2
#![ feature( crate_visibility_modifier) ]
4
3
#![ feature( decl_macro) ]
5
4
#![ feature( or_patterns) ]
Original file line number Diff line number Diff line change 13
13
//! This API is completely unstable and subject to change.
14
14
15
15
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/" ) ]
16
- #![ feature( bindings_after_at) ]
17
16
#![ feature( bool_to_option) ]
18
17
#![ feature( box_patterns) ]
19
18
#![ feature( box_syntax) ]
23
22
#![ feature( never_type) ]
24
23
#![ feature( or_patterns) ]
25
24
#![ feature( in_band_lifetimes) ]
26
- #![ feature( crate_visibility_modifier) ]
27
25
#![ recursion_limit = "512" ] // For rustdoc
28
26
29
27
#[ macro_use]
Original file line number Diff line number Diff line change 30
30
#![ feature( cmp_min_max_by) ]
31
31
#![ feature( const_fn) ]
32
32
#![ feature( const_panic) ]
33
- #![ feature( const_fn_transmute) ]
34
33
#![ feature( core_intrinsics) ]
35
34
#![ feature( discriminant_kind) ]
36
- #![ feature( drain_filter) ]
37
35
#![ feature( never_type) ]
38
- #![ feature( exhaustive_patterns) ]
39
36
#![ feature( extern_types) ]
40
37
#![ feature( nll) ]
41
38
#![ feature( once_cell) ]
42
39
#![ feature( option_expect_none) ]
43
40
#![ feature( or_patterns) ]
44
41
#![ feature( min_specialization) ]
45
42
#![ feature( trusted_len) ]
46
- #![ feature( stmt_expr_attributes) ]
47
43
#![ feature( test) ]
48
44
#![ feature( in_band_lifetimes) ]
49
45
#![ feature( crate_visibility_modifier) ]
50
46
#![ feature( associated_type_bounds) ]
51
47
#![ feature( rustc_attrs) ]
52
- #![ feature( hash_raw_entry) ]
53
48
#![ feature( int_error_matching) ]
54
49
#![ recursion_limit = "512" ]
55
50
Original file line number Diff line number Diff line change @@ -14,15 +14,12 @@ Rust MIR: a lowered representation of Rust.
14
14
#![ feature( const_panic) ]
15
15
#![ feature( crate_visibility_modifier) ]
16
16
#![ feature( decl_macro) ]
17
- #![ feature( drain_filter) ]
18
17
#![ feature( exact_size_is_empty) ]
19
18
#![ feature( exhaustive_patterns) ]
20
- #![ feature( iter_order_by) ]
21
19
#![ feature( never_type) ]
22
20
#![ feature( min_specialization) ]
23
21
#![ feature( trusted_len) ]
24
22
#![ feature( try_blocks) ]
25
- #![ feature( associated_type_bounds) ]
26
23
#![ feature( associated_type_defaults) ]
27
24
#![ feature( stmt_expr_attributes) ]
28
25
#![ feature( trait_alias) ]
Original file line number Diff line number Diff line change 3
3
#![ feature( bool_to_option) ]
4
4
#![ feature( crate_visibility_modifier) ]
5
5
#![ feature( bindings_after_at) ]
6
- #![ feature( try_blocks) ]
7
6
#![ feature( or_patterns) ]
8
7
9
8
use rustc_ast as ast;
Original file line number Diff line number Diff line change 11
11
) ]
12
12
#![ feature( nll) ]
13
13
#![ feature( or_patterns) ]
14
- #![ feature( rustc_private) ]
15
- #![ feature( unicode_internals) ]
16
14
#![ feature( bool_to_option) ]
17
15
18
16
pub use Alignment :: * ;
Original file line number Diff line number Diff line change 1
1
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/" ) ]
2
2
#![ feature( in_band_lifetimes) ]
3
3
#![ feature( nll) ]
4
- #![ feature( or_patterns) ]
5
4
#![ recursion_limit = "256" ]
6
5
7
6
use rustc_attr as attr;
Original file line number Diff line number Diff line change 10
10
#![ feature( const_panic) ]
11
11
#![ feature( negative_impls) ]
12
12
#![ feature( nll) ]
13
- #![ feature( optin_builtin_traits) ]
14
13
#![ feature( min_specialization) ]
15
14
#![ feature( option_expect_none) ]
16
- #![ feature( refcell_take) ]
17
15
18
16
#[ macro_use]
19
17
extern crate rustc_macros;
Original file line number Diff line number Diff line change 4
4
#![ feature( crate_visibility_modifier) ]
5
5
#![ feature( in_band_lifetimes) ]
6
6
#![ feature( nll) ]
7
- #![ feature( or_patterns) ]
8
7
#![ recursion_limit = "256" ]
9
8
10
9
#[ macro_use]
Original file line number Diff line number Diff line change 5
5
//! This API is completely unstable and subject to change.
6
6
7
7
#![ doc( html_root_url = "https://doc.rust-lang.org/nightly/" ) ]
8
- #![ feature( bool_to_option) ]
9
8
#![ feature( nll) ]
10
9
#![ recursion_limit = "256" ]
11
10
You can’t perform that action at this time.
0 commit comments