|
61 | 61 | test(attr(allow(dead_code, deprecated, unused_variables, unused_mut)))
|
62 | 62 | )]
|
63 | 63 | #![no_core]
|
| 64 | +// |
| 65 | +// Lints: |
| 66 | +#![deny(rust_2021_incompatible_or_patterns)] |
| 67 | +#![deny(unsafe_op_in_unsafe_fn)] |
64 | 68 | #![warn(deprecated_in_future)]
|
65 |
| -#![warn(missing_docs)] |
66 | 69 | #![warn(missing_debug_implementations)]
|
| 70 | +#![warn(missing_docs)] |
67 | 71 | #![allow(explicit_outlives_requirements)]
|
68 |
| -#![feature(rustc_allow_const_fn_unstable)] |
69 |
| -#![feature(allow_internal_unstable)] |
70 |
| -#![feature(arbitrary_self_types)] |
71 |
| -#![feature(asm)] |
72 |
| -#![feature(bool_to_option)] |
73 |
| -#![feature(cfg_target_has_atomic)] |
74 |
| -#![feature(const_heap)] |
| 72 | +// |
| 73 | +// Library features for const fns: |
| 74 | +#![feature(const_align_of_val)] |
75 | 75 | #![feature(const_alloc_layout)]
|
76 | 76 | #![feature(const_arguments_as_str)]
|
77 | 77 | #![feature(const_assert_type)]
|
78 |
| -#![feature(const_discriminant)] |
| 78 | +#![feature(const_caller_location)] |
79 | 79 | #![feature(const_cell_into_inner)]
|
80 |
| -#![feature(const_intrinsic_copy)] |
81 |
| -#![feature(const_intrinsic_forget)] |
82 |
| -#![feature(const_float_classify)] |
| 80 | +#![feature(const_discriminant)] |
83 | 81 | #![feature(const_float_bits_conv)]
|
84 |
| -#![feature(const_int_unchecked_arith)] |
| 82 | +#![feature(const_float_classify)] |
| 83 | +#![feature(const_heap)] |
85 | 84 | #![feature(const_inherent_unchecked_arith)]
|
86 |
| -#![feature(const_mut_refs)] |
87 |
| -#![feature(const_refs_to_cell)] |
88 |
| -#![feature(const_panic)] |
89 |
| -#![feature(const_pin)] |
90 |
| -#![cfg_attr(bootstrap, feature(const_fn_union))] |
91 |
| -#![feature(const_impl_trait)] |
92 |
| -#![feature(const_fn_floating_point_arithmetic)] |
93 |
| -#![feature(const_fn_fn_ptr_basics)] |
94 |
| -#![feature(const_fn_trait_bound)] |
| 85 | +#![feature(const_int_unchecked_arith)] |
| 86 | +#![feature(const_intrinsic_copy)] |
| 87 | +#![feature(const_intrinsic_forget)] |
| 88 | +#![feature(const_likely)] |
| 89 | +#![feature(const_maybe_uninit_as_ptr)] |
| 90 | +#![feature(const_maybe_uninit_assume_init)] |
95 | 91 | #![feature(const_option)]
|
96 |
| -#![feature(const_precise_live_drops)] |
| 92 | +#![feature(const_pin)] |
97 | 93 | #![feature(const_ptr_offset)]
|
98 | 94 | #![feature(const_ptr_offset_from)]
|
99 | 95 | #![feature(const_ptr_read)]
|
100 | 96 | #![feature(const_ptr_write)]
|
101 | 97 | #![feature(const_raw_ptr_comparison)]
|
102 |
| -#![feature(const_raw_ptr_deref)] |
| 98 | +#![feature(const_size_of_val)] |
103 | 99 | #![feature(const_slice_from_raw_parts)]
|
104 | 100 | #![feature(const_slice_ptr_len)]
|
105 |
| -#![feature(const_size_of_val)] |
106 | 101 | #![feature(const_swap)]
|
107 |
| -#![feature(const_align_of_val)] |
108 | 102 | #![feature(const_type_id)]
|
109 | 103 | #![feature(const_type_name)]
|
110 |
| -#![feature(const_likely)] |
111 | 104 | #![feature(const_unreachable_unchecked)]
|
112 |
| -#![feature(const_maybe_uninit_assume_init)] |
113 |
| -#![feature(const_maybe_uninit_as_ptr)] |
114 |
| -#![feature(custom_inner_attributes)] |
| 105 | +#![feature(duration_consts_2)] |
| 106 | +#![feature(ptr_metadata)] |
| 107 | +#![feature(slice_ptr_get)] |
| 108 | +#![feature(variant_count)] |
| 109 | +// |
| 110 | +// Language features: |
| 111 | +#![feature(abi_unadjusted)] |
| 112 | +#![feature(allow_internal_unstable)] |
| 113 | +#![feature(asm)] |
| 114 | +#![feature(associated_type_bounds)] |
| 115 | +#![feature(auto_traits)] |
| 116 | +#![feature(cfg_target_has_atomic)] |
| 117 | +#![feature(const_fn_floating_point_arithmetic)] |
| 118 | +#![feature(const_fn_fn_ptr_basics)] |
| 119 | +#![feature(const_fn_trait_bound)] |
| 120 | +#![cfg_attr(bootstrap, feature(const_fn_transmute))] |
| 121 | +#![cfg_attr(bootstrap, feature(const_fn_union))] |
| 122 | +#![feature(const_impl_trait)] |
| 123 | +#![feature(const_mut_refs)] |
| 124 | +#![feature(const_panic)] |
| 125 | +#![feature(const_precise_live_drops)] |
| 126 | +#![feature(const_raw_ptr_deref)] |
| 127 | +#![feature(const_refs_to_cell)] |
115 | 128 | #![feature(decl_macro)]
|
116 | 129 | #![feature(doc_cfg)]
|
117 | 130 | #![feature(doc_notable_trait)]
|
118 |
| -#![feature(duration_consts_2)] |
| 131 | +#![feature(exhaustive_patterns)] |
119 | 132 | #![feature(extern_types)]
|
120 | 133 | #![feature(fundamental)]
|
121 | 134 | #![feature(intra_doc_pointers)]
|
122 | 135 | #![feature(intrinsics)]
|
123 | 136 | #![feature(lang_items)]
|
124 | 137 | #![feature(link_llvm_intrinsics)]
|
125 | 138 | #![feature(llvm_asm)]
|
| 139 | +#![feature(min_specialization)] |
126 | 140 | #![feature(negative_impls)]
|
127 | 141 | #![feature(never_type)]
|
128 |
| -#![feature(nll)] |
129 |
| -#![feature(exhaustive_patterns)] |
130 | 142 | #![feature(no_core)]
|
131 |
| -#![feature(auto_traits)] |
132 |
| -#![feature(pin_deref_mut)] |
| 143 | +#![feature(no_coverage)] // rust-lang/rust#84605 |
| 144 | +#![feature(no_niche)] // rust-lang/rust#68303 |
| 145 | +#![feature(platform_intrinsics)] |
133 | 146 | #![feature(prelude_import)]
|
134 |
| -#![feature(ptr_metadata)] |
135 |
| -#![feature(repr_simd, platform_intrinsics)] |
| 147 | +#![feature(repr_simd)] |
| 148 | +#![feature(rustc_allow_const_fn_unstable)] |
136 | 149 | #![feature(rustc_attrs)]
|
137 | 150 | #![feature(simd_ffi)]
|
138 |
| -#![feature(min_specialization)] |
139 | 151 | #![feature(staged_api)]
|
140 |
| -#![feature(std_internals)] |
141 | 152 | #![feature(stmt_expr_attributes)]
|
142 |
| -#![feature(str_split_as_str)] |
143 |
| -#![feature(str_split_inclusive_as_str)] |
144 |
| -#![feature(char_indices_offset)] |
145 | 153 | #![feature(trait_alias)]
|
146 | 154 | #![feature(transparent_unions)]
|
147 | 155 | #![feature(try_blocks)]
|
148 | 156 | #![feature(unboxed_closures)]
|
149 | 157 | #![feature(unsized_fn_params)]
|
150 |
| -#![feature(variant_count)] |
151 |
| -#![feature(tbm_target_feature)] |
152 |
| -#![feature(sse4a_target_feature)] |
153 |
| -#![feature(arm_target_feature)] |
154 |
| -#![feature(powerpc_target_feature)] |
155 |
| -#![feature(mips_target_feature)] |
| 158 | +// |
| 159 | +// Target features: |
156 | 160 | #![feature(aarch64_target_feature)]
|
157 |
| -#![feature(wasm_target_feature)] |
| 161 | +#![feature(adx_target_feature)] |
| 162 | +#![feature(arm_target_feature)] |
158 | 163 | #![feature(avx512_target_feature)]
|
159 | 164 | #![feature(cmpxchg16b_target_feature)]
|
160 |
| -#![feature(rtm_target_feature)] |
161 | 165 | #![feature(f16c_target_feature)]
|
162 | 166 | #![feature(hexagon_target_feature)]
|
163 |
| -#![cfg_attr(bootstrap, feature(const_fn_transmute))] |
164 |
| -#![feature(abi_unadjusted)] |
165 |
| -#![feature(adx_target_feature)] |
166 |
| -#![feature(associated_type_bounds)] |
167 |
| -#![feature(const_caller_location)] |
168 |
| -#![feature(slice_ptr_get)] |
169 |
| -#![feature(no_niche)] // rust-lang/rust#68303 |
170 |
| -#![feature(no_coverage)] // rust-lang/rust#84605 |
171 |
| -#![deny(unsafe_op_in_unsafe_fn)] |
172 |
| -#![deny(rust_2021_incompatible_or_patterns)] |
| 167 | +#![feature(mips_target_feature)] |
| 168 | +#![feature(powerpc_target_feature)] |
| 169 | +#![feature(rtm_target_feature)] |
| 170 | +#![feature(sse4a_target_feature)] |
| 171 | +#![feature(tbm_target_feature)] |
| 172 | +#![feature(wasm_target_feature)] |
173 | 173 |
|
174 | 174 | // allow using `core::` in intra-doc links
|
175 | 175 | #[allow(unused_extern_crates)]
|
|
0 commit comments