|
95 | 95 | // |
96 | 96 | // Library features: |
97 | 97 | // tidy-alphabetical-start |
98 | | -#![feature(array_ptr_get)] |
99 | | -#![feature(asm_experimental_arch)] |
100 | | -#![feature(bstr)] |
| 98 | +#![cfg_attr(doc, feature(intra_doc_pointers))] |
| 99 | +#![cfg_attr( |
| 100 | + not(any( |
| 101 | + target_arch = "x86", |
| 102 | + target_arch = "x86_64", |
| 103 | + target_arch = "arm", |
| 104 | + target_arch = "aarch64", |
| 105 | + target_arch = "arm64ec", |
| 106 | + target_arch = "riscv32", |
| 107 | + target_arch = "riscv64", |
| 108 | + target_arch = "loongarch32", |
| 109 | + target_arch = "loongarch64", |
| 110 | + target_arch = "s390x", |
| 111 | + target_arch = "powerpc", |
| 112 | + target_arch = "powerpc64" |
| 113 | + )), |
| 114 | + feature(asm_experimental_arch) |
| 115 | +)] |
| 116 | +#![cfg_attr(windows, feature(link_cfg))] |
101 | 117 | #![feature(bstr_internals)] |
102 | 118 | #![feature(cfg_select)] |
103 | 119 | #![feature(cfg_target_has_reliable_f16_f128)] |
|
106 | 122 | #![feature(const_destruct)] |
107 | 123 | #![feature(const_eval_select)] |
108 | 124 | #![feature(const_select_unpredictable)] |
109 | | -#![feature(const_unsigned_bigint_helpers)] |
110 | 125 | #![feature(core_intrinsics)] |
111 | 126 | #![feature(coverage_attribute)] |
112 | 127 | #![feature(disjoint_bitor)] |
113 | 128 | #![feature(internal_impls_macro)] |
114 | | -#![feature(ip)] |
115 | | -#![feature(is_ascii_octdigit)] |
116 | | -#![feature(link_cfg)] |
117 | 129 | #![feature(offset_of_enum)] |
118 | 130 | #![feature(panic_internals)] |
119 | 131 | #![feature(pattern_type_macro)] |
120 | | -#![feature(ptr_alignment_type)] |
121 | | -#![feature(ptr_metadata)] |
122 | | -#![feature(set_ptr_value)] |
123 | | -#![feature(signed_bigint_helpers)] |
124 | | -#![feature(slice_ptr_get)] |
125 | | -#![feature(str_internals)] |
126 | | -#![feature(str_split_inclusive_remainder)] |
127 | | -#![feature(str_split_remainder)] |
128 | | -#![feature(type_info)] |
129 | 132 | #![feature(ub_checks)] |
130 | | -#![feature(unsafe_pinned)] |
131 | | -#![feature(utf16_extra)] |
132 | | -#![feature(variant_count)] |
133 | | -#![feature(widening_mul)] |
134 | 133 | // tidy-alphabetical-end |
135 | 134 | // |
136 | 135 | // Language features: |
137 | 136 | // tidy-alphabetical-start |
| 137 | +#![cfg_attr( |
| 138 | + any(target_arch = "arm", target_arch = "aarch64", target_arch = "arm64ec", doc), |
| 139 | + feature(target_feature_inline_always) |
| 140 | +)] |
138 | 141 | #![feature(abi_unadjusted)] |
139 | 142 | #![feature(adt_const_params)] |
140 | 143 | #![feature(allow_internal_unsafe)] |
|
159 | 162 | #![feature(fundamental)] |
160 | 163 | #![feature(funnel_shifts)] |
161 | 164 | #![feature(if_let_guard)] |
162 | | -#![feature(intra_doc_pointers)] |
163 | 165 | #![feature(intrinsics)] |
164 | 166 | #![feature(lang_items)] |
165 | 167 | #![feature(link_llvm_intrinsics)] |
|
175 | 177 | #![feature(optimize_attribute)] |
176 | 178 | #![feature(pattern_types)] |
177 | 179 | #![feature(prelude_import)] |
178 | | -#![feature(reborrow)] |
179 | 180 | #![feature(repr_simd)] |
180 | 181 | #![feature(rustc_allow_const_fn_unstable)] |
181 | 182 | #![feature(rustc_attrs)] |
|
184 | 185 | #![feature(staged_api)] |
185 | 186 | #![feature(stmt_expr_attributes)] |
186 | 187 | #![feature(strict_provenance_lints)] |
187 | | -#![feature(target_feature_inline_always)] |
188 | 188 | #![feature(trait_alias)] |
189 | 189 | #![feature(transparent_unions)] |
190 | 190 | #![feature(try_blocks)] |
|
195 | 195 | // |
196 | 196 | // Target features: |
197 | 197 | // tidy-alphabetical-start |
198 | | -#![feature(aarch64_unstable_target_feature)] |
199 | | -#![feature(arm_target_feature)] |
200 | | -#![feature(avx10_target_feature)] |
201 | | -#![feature(hexagon_target_feature)] |
202 | | -#![feature(loongarch_target_feature)] |
203 | | -#![feature(mips_target_feature)] |
204 | | -#![feature(nvptx_target_feature)] |
205 | | -#![feature(powerpc_target_feature)] |
206 | | -#![feature(riscv_target_feature)] |
207 | | -#![feature(rtm_target_feature)] |
208 | | -#![feature(s390x_target_feature)] |
209 | | -#![feature(wasm_target_feature)] |
210 | | -#![feature(x86_amx_intrinsics)] |
| 198 | +#![cfg_attr( |
| 199 | + any(target_arch = "loongarch32", target_arch = "loongarch64"), |
| 200 | + feature(loongarch_target_feature) |
| 201 | +)] |
| 202 | +#![cfg_attr(any(target_arch = "mips", target_arch = "mips64"), feature(mips_target_feature))] |
| 203 | +#![cfg_attr( |
| 204 | + any(target_arch = "powerpc", target_arch = "powerpc64"), |
| 205 | + feature(powerpc_target_feature) |
| 206 | +)] |
| 207 | +#![cfg_attr(any(target_arch = "riscv32", target_arch = "riscv64"), feature(riscv_target_feature))] |
| 208 | +#![cfg_attr(any(target_arch = "x86", target_arch = "x86_64"), feature(avx10_target_feature))] |
| 209 | +#![cfg_attr(any(target_arch = "x86", target_arch = "x86_64"), feature(rtm_target_feature))] |
| 210 | +#![cfg_attr(any(target_arch = "x86", target_arch = "x86_64"), feature(x86_amx_intrinsics))] |
| 211 | +#![cfg_attr( |
| 212 | + any(target_family = "wasm", target_arch = "wasm32", target_arch = "wasm64"), |
| 213 | + feature(wasm_target_feature) |
| 214 | +)] |
| 215 | +#![cfg_attr(target_arch = "aarch64", feature(aarch64_unstable_target_feature))] |
| 216 | +#![cfg_attr(target_arch = "arm", feature(arm_target_feature))] |
| 217 | +#![cfg_attr(target_arch = "hexagon", feature(hexagon_target_feature))] |
| 218 | +#![cfg_attr(target_arch = "nvptx64", feature(nvptx_target_feature))] |
| 219 | +#![cfg_attr(target_arch = "s390x", feature(s390x_target_feature))] |
211 | 220 | // tidy-alphabetical-end |
212 | 221 |
|
213 | 222 | // allow using `core::` in intra-doc links |
|
0 commit comments