1. The Unstable Book
  2. 1. Compiler flags
    1. 1.1. branch_protection
    2. 1.2. cf_protection
    3. 1.3. check_cfg
    4. 1.4. codegen_backend
    5. 1.5. control_flow_guard
    6. 1.6. debug_info_for_profiling
    7. 1.7. emit_stack_sizes
    8. 1.8. extern_location
    9. 1.9. location_detail
    10. 1.10. move_size_limit
    11. 1.11. no_unique_section_names
    12. 1.12. profile
    13. 1.13. profile_sample_use
    14. 1.14. remap_cwd_prefix
    15. 1.15. report_time
    16. 1.16. sanitizer
    17. 1.17. self_profile
    18. 1.18. self_profile_events
    19. 1.19. src_hash_algorithm
    20. 1.20. temps_dir
    21. 1.21. tls_model
    22. 1.22. unsound_mir_opts
  3. 2. Language features
    1. 2.1. aarch64_ver_target_feature
    2. 2.2. abi_amdgpu_kernel
    3. 2.3. abi_avr_interrupt
    4. 2.4. abi_c_cmse_nonsecure_call
    5. 2.5. abi_efiapi
    6. 2.6. abi_msp430_interrupt
    7. 2.7. abi_ptx
    8. 2.8. abi_thiscall
    9. 2.9. abi_unadjusted
    10. 2.10. abi_vectorcall
    11. 2.11. abi_x86_interrupt
    12. 2.12. adt_const_params
    13. 2.13. alloc_error_handler
    14. 2.14. allocator_internals
    15. 2.15. allow_internal_unsafe
    16. 2.16. allow_internal_unstable
    17. 2.17. arbitrary_enum_discriminant
    18. 2.18. arbitrary_self_types
    19. 2.19. arm_target_feature
    20. 2.20. asm_const
    21. 2.21. asm_experimental_arch
    22. 2.22. asm_sym
    23. 2.23. asm_unwind
    24. 2.24. associated_const_equality
    25. 2.25. associated_type_bounds
    26. 2.26. associated_type_defaults
    27. 2.27. async_closure
    28. 2.28. auto_traits
    29. 2.29. avx512_target_feature
    30. 2.30. box_patterns
    31. 2.31. box_syntax
    32. 2.32. bpf_target_feature
    33. 2.33. c_unwind
    34. 2.34. c_variadic
    35. 2.35. capture_disjoint_fields
    36. 2.36. cfg_sanitize
    37. 2.37. cfg_target_abi
    38. 2.38. cfg_target_has_atomic
    39. 2.39. cfg_target_has_atomic_equal_alignment
    40. 2.40. cfg_target_thread_local
    41. 2.41. cfg_version
    42. 2.42. closure_track_caller
    43. 2.43. cmpxchg16b_target_feature
    44. 2.44. cmse_nonsecure_entry
    45. 2.45. compiler_builtins
    46. 2.46. const_async_blocks
    47. 2.47. const_eval_limit
    48. 2.48. const_extern_fn
    49. 2.49. const_fn_floating_point_arithmetic
    50. 2.50. const_for
    51. 2.51. const_mut_refs
    52. 2.52. const_precise_live_drops
    53. 2.53. const_refs_to_cell
    54. 2.54. const_trait_impl
    55. 2.55. const_try
    56. 2.56. crate_visibility_modifier
    57. 2.57. custom_inner_attributes
    58. 2.58. custom_test_frameworks
    59. 2.59. decl_macro
    60. 2.60. default_alloc_error_handler
    61. 2.61. default_type_parameter_fallback
    62. 2.62. deprecated_safe
    63. 2.63. deprecated_suggestion
    64. 2.64. doc_auto_cfg
    65. 2.65. doc_cfg
    66. 2.66. doc_cfg_hide
    67. 2.67. doc_masked
    68. 2.68. doc_notable_trait
    69. 2.69. dropck_eyepatch
    70. 2.70. ermsb_target_feature
    71. 2.71. exclusive_range_pattern
    72. 2.72. exhaustive_patterns
    73. 2.73. explicit_generic_args_with_impl_trait
    74. 2.74. extern_types
    75. 2.75. f16c_target_feature
    76. 2.76. ffi_const
    77. 2.77. ffi_pure
    78. 2.78. ffi_returns_twice
    79. 2.79. fn_align
    80. 2.80. fundamental
    81. 2.81. generators
    82. 2.82. generic_arg_infer
    83. 2.83. generic_associated_types
    84. 2.84. generic_associated_types_extended
    85. 2.85. generic_const_exprs
    86. 2.86. half_open_range_patterns
    87. 2.87. hexagon_target_feature
    88. 2.88. if_let_guard
    89. 2.89. imported_main
    90. 2.90. infer_static_outlives_requirements
    91. 2.91. inherent_associated_types
    92. 2.92. inline_const
    93. 2.93. inline_const_pat
    94. 2.94. intra_doc_pointers
    95. 2.95. intrinsics
    96. 2.96. isa_attribute
    97. 2.97. label_break_value
    98. 2.98. lang_items
    99. 2.99. large_assignments
    100. 2.100. let_chains
    101. 2.101. let_else
    102. 2.102. link_cfg
    103. 2.103. link_llvm_intrinsics
    104. 2.104. linkage
    105. 2.105. lint_reasons
    106. 2.106. macro_metavar_expr
    107. 2.107. marker_trait_attr
    108. 2.108. min_specialization
    109. 2.109. mips_target_feature
    110. 2.110. more_qualified_paths
    111. 2.111. movbe_target_feature
    112. 2.112. must_not_suspend
    113. 2.113. naked_functions
    114. 2.114. native_link_modifiers_as_needed
    115. 2.115. native_link_modifiers_bundle
    116. 2.116. native_link_modifiers_verbatim
    117. 2.117. needs_panic_runtime
    118. 2.118. negative_impls
    119. 2.119. never_type
    120. 2.120. never_type_fallback
    121. 2.121. nll
    122. 2.122. no_core
    123. 2.123. no_coverage
    124. 2.124. no_niche
    125. 2.125. no_sanitize
    126. 2.126. non_exhaustive_omitted_patterns_lint
    127. 2.127. object_safe_for_dispatch
    128. 2.128. omit_gdb_pretty_printer_section
    129. 2.129. optimize_attribute
    130. 2.130. panic_runtime
    131. 2.131. platform_intrinsics
    132. 2.132. plugin
    133. 2.133. powerpc_target_feature
    134. 2.134. precise_pointer_size_matching
    135. 2.135. prelude_import
    136. 2.136. proc_macro_hygiene
    137. 2.137. profiler_runtime
    138. 2.138. raw_dylib
    139. 2.139. raw_ref_op
    140. 2.140. register_attr
    141. 2.141. register_tool
    142. 2.142. repr_simd
    143. 2.143. repr128
    144. 2.144. riscv_target_feature
    145. 2.145. rtm_target_feature
    146. 2.146. rustc_allow_const_fn_unstable
    147. 2.147. rustc_attrs
    148. 2.148. rustc_private
    149. 2.149. rustdoc_internals
    150. 2.150. simd_ffi
    151. 2.151. specialization
    152. 2.152. sse4a_target_feature
    153. 2.153. staged_api
    154. 2.154. start
    155. 2.155. static_nobundle
    156. 2.156. stmt_expr_attributes
    157. 2.157. strict_provenance
    158. 2.158. structural_match
    159. 2.159. target_feature_11
    160. 2.160. tbm_target_feature
    161. 2.161. test_2018_feature
    162. 2.162. test_unstable_lint
    163. 2.163. thread_local
    164. 2.164. trait_alias
    165. 2.165. trait_upcasting
    166. 2.166. transparent_unions
    167. 2.167. trivial_bounds
    168. 2.168. try_blocks
    169. 2.169. type_alias_impl_trait
    170. 2.170. type_ascription
    171. 2.171. type_changing_struct_update
    172. 2.172. unboxed_closures
    173. 2.173. unsafe_pin_internals
    174. 2.174. unsized_fn_params
    175. 2.175. unsized_locals
    176. 2.176. unsized_tuple_coercion
    177. 2.177. untagged_unions
    178. 2.178. used_with_arg
    179. 2.179. wasm_abi
    180. 2.180. wasm_target_feature
    181. 2.181. with_negative_coherence
  4. 3. Library Features
    1. 3.1. absolute_path
    2. 3.2. alloc_c_string
    3. 3.3. alloc_error_hook
    4. 3.4. alloc_ffi
    5. 3.5. alloc_internals
    6. 3.6. alloc_layout_extra
    7. 3.7. allocator_api
    8. 3.8. arc_unwrap_or_clone
    9. 3.9. array_chunks
    10. 3.10. array_error_internals
    11. 3.11. array_from_fn
    12. 3.12. array_into_iter_constructors
    13. 3.13. array_methods
    14. 3.14. array_try_map
    15. 3.15. array_windows
    16. 3.16. array_zip
    17. 3.17. as_array_of_cells
    18. 3.18. assert_matches
    19. 3.19. async_iter_from_iter
    20. 3.20. async_iterator
    21. 3.21. atomic_from_mut
    22. 3.22. atomic_mut_ptr
    23. 3.23. backtrace
    24. 3.24. backtrace_frames
    25. 3.25. bench_black_box
    26. 3.26. bigint_helper_methods
    27. 3.27. binary_heap_as_slice
    28. 3.28. binary_heap_drain_sorted
    29. 3.29. binary_heap_into_iter_sorted
    30. 3.30. binary_heap_retain
    31. 3.31. bool_to_option
    32. 3.32. bound_as_ref
    33. 3.33. bound_map
    34. 3.34. box_into_boxed_slice
    35. 3.35. box_into_inner
    36. 3.36. box_into_pin
    37. 3.37. btree_drain_filter
    38. 3.38. buf_read_has_data_left
    39. 3.39. build_hasher_simple_hash_one
    40. 3.40. byte_slice_trim_ascii
    41. 3.41. c_size_t
    42. 3.42. c_void_variant
    43. 3.43. can_vector
    44. 3.44. cell_filter_map
    45. 3.45. cell_leak
    46. 3.46. cell_update
    47. 3.47. cfg_accessible
    48. 3.48. cfg_eval
    49. 3.49. char_error_internals
    50. 3.50. char_indices_offset
    51. 3.51. char_internals
    52. 3.52. coerce_unsized
    53. 3.53. concat_bytes
    54. 3.54. concat_idents
    55. 3.55. const_align_of_val
    56. 3.56. const_align_of_val_raw
    57. 3.57. const_align_offset
    58. 3.58. const_alloc_error
    59. 3.59. const_alloc_layout
    60. 3.60. const_arguments_as_str
    61. 3.61. const_array_from_ref
    62. 3.62. const_array_into_iter_constructors
    63. 3.63. const_assert_type2
    64. 3.64. const_assume
    65. 3.65. const_bigint_helper_methods
    66. 3.66. const_black_box
    67. 3.67. const_bool_to_option
    68. 3.68. const_borrow
    69. 3.69. const_box
    70. 3.70. const_btree_new
    71. 3.71. const_caller_location
    72. 3.72. const_cell_into_inner
    73. 3.73. const_char_convert
    74. 3.74. const_clone
    75. 3.75. const_convert
    76. 3.76. const_cow_is_borrowed
    77. 3.77. const_default_impls
    78. 3.78. const_deref
    79. 3.79. const_discriminant
    80. 3.80. const_eval_select
    81. 3.81. const_float_bits_conv
    82. 3.82. const_float_classify
    83. 3.83. const_fmt_arguments_new
    84. 3.84. const_format_args
    85. 3.85. const_heap
    86. 3.86. const_inherent_unchecked_arith
    87. 3.87. const_int_unchecked_arith
    88. 3.88. const_intrinsic_copy
    89. 3.89. const_intrinsic_forget
    90. 3.90. const_intrinsic_raw_eq
    91. 3.91. const_io_structs
    92. 3.92. const_ip
    93. 3.93. const_ipv4
    94. 3.94. const_ipv6
    95. 3.95. const_is_char_boundary
    96. 3.96. const_likely
    97. 3.97. const_maybe_uninit_array_assume_init
    98. 3.98. const_maybe_uninit_as_mut_ptr
    99. 3.99. const_maybe_uninit_assume_init
    100. 3.100. const_maybe_uninit_assume_init_read
    101. 3.101. const_maybe_uninit_uninit_array
    102. 3.102. const_maybe_uninit_write
    103. 3.103. const_maybe_uninit_zeroed
    104. 3.104. const_nonnull_new
    105. 3.105. const_nonnull_slice_from_raw_parts
    106. 3.106. const_num_from_num
    107. 3.107. const_ops
    108. 3.108. const_option
    109. 3.109. const_option_cloned
    110. 3.110. const_option_ext
    111. 3.111. const_pin
    112. 3.112. const_pref_align_of
    113. 3.113. const_ptr_as_ref
    114. 3.114. const_ptr_is_null
    115. 3.115. const_ptr_offset_from
    116. 3.116. const_ptr_read
    117. 3.117. const_ptr_write
    118. 3.118. const_raw_ptr_comparison
    119. 3.119. const_replace
    120. 3.120. const_result
    121. 3.121. const_result_drop
    122. 3.122. const_size_of_val
    123. 3.123. const_size_of_val_raw
    124. 3.124. const_slice_first_last
    125. 3.125. const_slice_from_raw_parts
    126. 3.126. const_slice_from_ref
    127. 3.127. const_slice_index
    128. 3.128. const_slice_ptr_len
    129. 3.129. const_socketaddr
    130. 3.130. const_str_from_utf8
    131. 3.131. const_str_from_utf8_unchecked_mut
    132. 3.132. const_swap
    133. 3.133. const_transmute_copy
    134. 3.134. const_type_id
    135. 3.135. const_type_name
    136. 3.136. const_unsafecell_get_mut
    137. 3.137. const_weak_new
    138. 3.138. container_error_extra
    139. 3.139. control_flow_enum
    140. 3.140. convert_float_to_int
    141. 3.141. core_c_str
    142. 3.142. core_ffi_c
    143. 3.143. core_intrinsics
    144. 3.144. core_panic
    145. 3.145. core_private_bignum
    146. 3.146. core_private_diy_float
    147. 3.147. cow_is_borrowed
    148. 3.148. cstr_from_bytes_until_nul
    149. 3.149. cstr_internals
    150. 3.150. cursor_remaining
    151. 3.151. deadline_api
    152. 3.152. dec2flt
    153. 3.153. default_free_fn
    154. 3.154. derive_clone_copy
    155. 3.155. derive_eq
    156. 3.156. dir_entry_ext2
    157. 3.157. discriminant_kind
    158. 3.158. dispatch_from_dyn
    159. 3.159. div_duration
    160. 3.160. downcast_unchecked
    161. 3.161. drain_filter
    162. 3.162. duration_checked_float
    163. 3.163. duration_constants
    164. 3.164. duration_consts_float
    165. 3.165. edition_panic
    166. 3.166. entry_insert
    167. 3.167. error_iter
    168. 3.168. error_reporter
    169. 3.169. error_type_id
    170. 3.170. exact_size_is_empty
    171. 3.171. exit_status_error
    172. 3.172. extend_one
    173. 3.173. fd
    174. 3.174. fd_read
    175. 3.175. float_minimum_maximum
    176. 3.176. flt2dec
    177. 3.177. fmt_internals
    178. 3.178. fn_traits
    179. 3.179. forget_unsized
    180. 3.180. format_args_nl
    181. 3.181. future_join
    182. 3.182. future_poll_fn
    183. 3.183. gen_future
    184. 3.184. generator_trait
    185. 3.185. get_mut_unchecked
    186. 3.186. hash_drain_filter
    187. 3.187. hash_raw_entry
    188. 3.188. hash_set_entry
    189. 3.189. hashmap_internals
    190. 3.190. hint_must_use
    191. 3.191. inplace_iteration
    192. 3.192. int_error_internals
    193. 3.193. int_log
    194. 3.194. int_roundings
    195. 3.195. integer_atomics
    196. 3.196. internal_output_capture
    197. 3.197. into_future
    198. 3.198. io_error_more
    199. 3.199. io_error_other
    200. 3.200. io_error_uncategorized
    201. 3.201. io_read_to_string
    202. 3.202. io_safety
    203. 3.203. io_slice_advance
    204. 3.204. ip
    205. 3.205. is_some_with
    206. 3.206. is_sorted
    207. 3.207. iter_advance_by
    208. 3.208. iter_collect_into
    209. 3.209. iter_intersperse
    210. 3.210. iter_is_partitioned
    211. 3.211. iter_order_by
    212. 3.212. iter_partition_in_place
    213. 3.213. iterator_try_collect
    214. 3.214. iterator_try_reduce
    215. 3.215. layout_for_ptr
    216. 3.216. liballoc_internals
    217. 3.217. libstd_sys_internals
    218. 3.218. libstd_thread_internals
    219. 3.219. linked_list_cursors
    220. 3.220. linked_list_remove
    221. 3.221. linux_pidfd
    222. 3.222. local_key_cell_methods
    223. 3.223. log_syntax
    224. 3.224. main_separator_str
    225. 3.225. map_entry_replace
    226. 3.226. map_first_last
    227. 3.227. map_try_insert
    228. 3.228. maybe_uninit_array_assume_init
    229. 3.229. maybe_uninit_as_bytes
    230. 3.230. maybe_uninit_slice
    231. 3.231. maybe_uninit_uninit_array
    232. 3.232. maybe_uninit_write_slice
    233. 3.233. mixed_integer_ops
    234. 3.234. mutex_unlock
    235. 3.235. new_uninit
    236. 3.236. nonnull_slice_from_raw_parts
    237. 3.237. nonzero_bits
    238. 3.238. nonzero_min_max
    239. 3.239. nonzero_ops
    240. 3.240. numfmt
    241. 3.241. once_cell
    242. 3.242. one_sided_range
    243. 3.243. option_get_or_insert_default
    244. 3.244. option_result_contains
    245. 3.245. option_zip
    246. 3.246. panic_abort
    247. 3.247. panic_always_abort
    248. 3.248. panic_backtrace_config
    249. 3.249. panic_can_unwind
    250. 3.250. panic_info_message
    251. 3.251. panic_internals
    252. 3.252. panic_unwind
    253. 3.253. panic_update_hook
    254. 3.254. path_file_prefix
    255. 3.255. path_try_exists
    256. 3.256. pattern
    257. 3.257. peer_credentials_unix_socket
    258. 3.258. pin_deref_mut
    259. 3.259. pin_macro
    260. 3.260. poll_ready
    261. 3.261. portable_simd
    262. 3.262. prelude_2024
    263. 3.263. print_internals
    264. 3.264. proc_macro_def_site
    265. 3.265. proc_macro_diagnostic
    266. 3.266. proc_macro_expand
    267. 3.267. proc_macro_internals
    268. 3.268. proc_macro_quote
    269. 3.269. proc_macro_span
    270. 3.270. proc_macro_span_shrink
    271. 3.271. proc_macro_tracked_env
    272. 3.272. process_exitcode_internals
    273. 3.273. process_internals
    274. 3.274. process_set_process_group
    275. 3.275. profiler_runtime_lib
    276. 3.276. ptr_as_uninit
    277. 3.277. ptr_const_cast
    278. 3.278. ptr_internals
    279. 3.279. ptr_metadata
    280. 3.280. ptr_to_from_bits
    281. 3.281. pub_crate_should_not_need_unstable_attr
    282. 3.282. raw_os_nonzero
    283. 3.283. raw_vec_internals
    284. 3.284. read_buf
    285. 3.285. ready_macro
    286. 3.286. receiver_trait
    287. 3.287. restricted_std
    288. 3.288. result_contains_err
    289. 3.289. result_flattening
    290. 3.290. result_into_ok_or_err
    291. 3.291. result_option_inspect
    292. 3.292. round_char_boundary
    293. 3.293. rt
    294. 3.294. saturating_int_assign_impl
    295. 3.295. saturating_int_impl
    296. 3.296. scoped_threads
    297. 3.297. sealed
    298. 3.298. seek_stream_len
    299. 3.299. set_ptr_value
    300. 3.300. setgroups
    301. 3.301. sgx_platform
    302. 3.302. slice_as_chunks
    303. 3.303. slice_concat_ext
    304. 3.304. slice_concat_trait
    305. 3.305. slice_flatten
    306. 3.306. slice_from_ptr_range
    307. 3.307. slice_group_by
    308. 3.308. slice_index_methods
    309. 3.309. slice_internals
    310. 3.310. slice_partition_dedup
    311. 3.311. slice_pattern
    312. 3.312. slice_ptr_get
    313. 3.313. slice_ptr_len
    314. 3.314. slice_range
    315. 3.315. slice_split_at_unchecked
    316. 3.316. slice_swap_unchecked
    317. 3.317. slice_take
    318. 3.318. solid_ext
    319. 3.319. sort_internals
    320. 3.320. split_array
    321. 3.321. std_internals
    322. 3.322. stdsimd
    323. 3.323. step_trait
    324. 3.324. str_internals
    325. 3.325. str_split_as_str
    326. 3.326. str_split_inclusive_as_str
    327. 3.327. str_split_whitespace_as_str
    328. 3.328. string_extend_from_within
    329. 3.329. string_remove_matches
    330. 3.330. sync_unsafe_cell
    331. 3.331. tcp_linger
    332. 3.332. tcplistener_into_incoming
    333. 3.333. test
    334. 3.334. thin_box
    335. 3.335. thread_id_value
    336. 3.336. thread_local_internals
    337. 3.337. thread_spawn_unchecked
    338. 3.338. toowned_clone_into
    339. 3.339. trace_macros
    340. 3.340. track_path
    341. 3.341. trusted_len
    342. 3.342. trusted_random_access
    343. 3.343. trusted_step
    344. 3.344. try_find
    345. 3.345. try_reserve_2
    346. 3.346. try_reserve_kind
    347. 3.347. try_trait_v2
    348. 3.348. try_trait_v2_residual
    349. 3.349. type_name_of_val
    350. 3.350. unchecked_math
    351. 3.351. unicode_internals
    352. 3.352. unix_chown
    353. 3.353. unix_socket_abstract
    354. 3.354. unix_socket_ancillary_data
    355. 3.355. unix_socket_peek
    356. 3.356. unsize
    357. 3.357. unwrap_infallible
    358. 3.358. unzip_option
    359. 3.359. update_panic_count
    360. 3.360. utf16_extra
    361. 3.361. utf16_extra_const
    362. 3.362. variant_count
    363. 3.363. vec_into_raw_parts
    364. 3.364. vec_split_at_spare
    365. 3.365. waker_getters
    366. 3.366. wasi_ext
    367. 3.367. windows_by_handle
    368. 3.368. windows_c
    369. 3.369. windows_file_type_ext
    370. 3.370. windows_handle
    371. 3.371. windows_net
    372. 3.372. windows_process_extensions_force_quotes
    373. 3.373. windows_stdio
    374. 3.374. wrapping_int_impl
    375. 3.375. wrapping_next_power_of_two
    376. 3.376. write_all_vectored

The Rust Unstable Book

Compiler flags