1. The Unstable Book
  2. 1. Compiler flags
    1. 1.1. codegen_backend
    2. 1.2. control_flow_guard
    3. 1.3. emit_stack_sizes
    4. 1.4. extern_location
    5. 1.5. instrument_coverage
    6. 1.6. profile
    7. 1.7. report_time
    8. 1.8. sanitizer
    9. 1.9. self_profile
    10. 1.10. self_profile_events
    11. 1.11. source_based_code_coverage
    12. 1.12. src_hash_algorithm
    13. 1.13. strip
    14. 1.14. tls_model
    15. 1.15. unsound_mir_opts
  3. 2. Language features
    1. 2.1. aarch64_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. adx_target_feature
    13. 2.13. alloc_error_handler
    14. 2.14. allocator_internals
    15. 2.15. allow_fail
    16. 2.16. allow_internal_unsafe
    17. 2.17. allow_internal_unstable
    18. 2.18. arbitrary_enum_discriminant
    19. 2.19. arbitrary_self_types
    20. 2.20. arm_target_feature
    21. 2.21. associated_type_bounds
    22. 2.22. associated_type_defaults
    23. 2.23. async_closure
    24. 2.24. auto_traits
    25. 2.25. avx512_target_feature
    26. 2.26. bindings_after_at
    27. 2.27. box_patterns
    28. 2.28. box_syntax
    29. 2.29. c_unwind
    30. 2.30. c_variadic
    31. 2.31. capture_disjoint_fields
    32. 2.32. cfg_panic
    33. 2.33. cfg_sanitize
    34. 2.34. cfg_target_has_atomic
    35. 2.35. cfg_target_thread_local
    36. 2.36. cfg_version
    37. 2.37. cmpxchg16b_target_feature
    38. 2.38. cmse_nonsecure_entry
    39. 2.39. compiler_builtins
    40. 2.40. const_eval_limit
    41. 2.41. const_evaluatable_checked
    42. 2.42. const_extern_fn
    43. 2.43. const_fn
    44. 2.44. const_fn_floating_point_arithmetic
    45. 2.45. const_fn_fn_ptr_basics
    46. 2.46. const_fn_trait_bound
    47. 2.47. const_fn_transmute
    48. 2.48. const_fn_union
    49. 2.49. const_fn_unsize
    50. 2.50. const_generics
    51. 2.51. const_generics_defaults
    52. 2.52. const_impl_trait
    53. 2.53. const_mut_refs
    54. 2.54. const_panic
    55. 2.55. const_precise_live_drops
    56. 2.56. const_raw_ptr_deref
    57. 2.57. const_raw_ptr_to_usize_cast
    58. 2.58. const_refs_to_cell
    59. 2.59. const_trait_bound_opt_out
    60. 2.60. const_trait_impl
    61. 2.61. crate_visibility_modifier
    62. 2.62. custom_inner_attributes
    63. 2.63. custom_test_frameworks
    64. 2.64. decl_macro
    65. 2.65. default_alloc_error_handler
    66. 2.66. default_type_parameter_fallback
    67. 2.67. destructuring_assignment
    68. 2.68. doc_cfg
    69. 2.69. doc_keyword
    70. 2.70. doc_masked
    71. 2.71. doc_notable_trait
    72. 2.72. dropck_eyepatch
    73. 2.73. ermsb_target_feature
    74. 2.74. exclusive_range_pattern
    75. 2.75. exhaustive_patterns
    76. 2.76. extended_key_value_attributes
    77. 2.77. extern_types
    78. 2.78. external_doc
    79. 2.79. f16c_target_feature
    80. 2.80. ffi_const
    81. 2.81. ffi_pure
    82. 2.82. ffi_returns_twice
    83. 2.83. fn_align
    84. 2.84. format_args_capture
    85. 2.85. fundamental
    86. 2.86. generators
    87. 2.87. generic_associated_types
    88. 2.88. half_open_range_patterns
    89. 2.89. hexagon_target_feature
    90. 2.90. if_let_guard
    91. 2.91. impl_trait_in_bindings
    92. 2.92. imported_main
    93. 2.93. in_band_lifetimes
    94. 2.94. infer_static_outlives_requirements
    95. 2.95. inherent_associated_types
    96. 2.96. inline_const
    97. 2.97. intra_doc_pointers
    98. 2.98. intrinsics
    99. 2.99. isa_attribute
    100. 2.100. label_break_value
    101. 2.101. lang_items
    102. 2.102. large_assignments
    103. 2.103. lazy_normalization_consts
    104. 2.104. let_chains
    105. 2.105. link_cfg
    106. 2.106. link_llvm_intrinsics
    107. 2.107. linkage
    108. 2.108. lint_reasons
    109. 2.109. macro_attributes_in_derive_output
    110. 2.110. marker_trait_attr
    111. 2.111. member_constraints
    112. 2.112. min_specialization
    113. 2.113. min_type_alias_impl_trait
    114. 2.114. mips_target_feature
    115. 2.115. movbe_target_feature
    116. 2.116. naked_functions
    117. 2.117. native_link_modifiers
    118. 2.118. native_link_modifiers_as_needed
    119. 2.119. native_link_modifiers_bundle
    120. 2.120. native_link_modifiers_verbatim
    121. 2.121. native_link_modifiers_whole_archive
    122. 2.122. needs_panic_runtime
    123. 2.123. negative_impls
    124. 2.124. never_type
    125. 2.125. never_type_fallback
    126. 2.126. nll
    127. 2.127. no_core
    128. 2.128. no_coverage
    129. 2.129. no_niche
    130. 2.130. no_sanitize
    131. 2.131. object_safe_for_dispatch
    132. 2.132. omit_gdb_pretty_printer_section
    133. 2.133. optimize_attribute
    134. 2.134. panic_runtime
    135. 2.135. platform_intrinsics
    136. 2.136. plugin
    137. 2.137. plugin_registrar
    138. 2.138. powerpc_target_feature
    139. 2.139. precise_pointer_size_matching
    140. 2.140. prelude_import
    141. 2.141. proc_macro_hygiene
    142. 2.142. profiler_runtime
    143. 2.143. raw_dylib
    144. 2.144. raw_ref_op
    145. 2.145. register_attr
    146. 2.146. register_tool
    147. 2.147. relaxed_struct_unsize
    148. 2.148. repr_simd
    149. 2.149. repr128
    150. 2.150. riscv_target_feature
    151. 2.151. rtm_target_feature
    152. 2.152. rustc_allow_const_fn_unstable
    153. 2.153. rustc_attrs
    154. 2.154. rustc_private
    155. 2.155. simd_ffi
    156. 2.156. specialization
    157. 2.157. sse4a_target_feature
    158. 2.158. staged_api
    159. 2.159. start
    160. 2.160. static_nobundle
    161. 2.161. stmt_expr_attributes
    162. 2.162. structural_match
    163. 2.163. target_feature_11
    164. 2.164. tbm_target_feature
    165. 2.165. test_2018_feature
    166. 2.166. thread_local
    167. 2.167. trait_alias
    168. 2.168. transparent_unions
    169. 2.169. trivial_bounds
    170. 2.170. try_blocks
    171. 2.171. type_alias_impl_trait
    172. 2.172. type_ascription
    173. 2.173. unboxed_closures
    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. unwind_attributes
    179. 2.179. wasm_abi
    180. 2.180. wasm_target_feature
  4. 3. Library Features
    1. 3.1. alloc_error_hook
    2. 3.2. alloc_internals
    3. 3.3. alloc_layout_extra
    4. 3.4. alloc_prelude
    5. 3.5. allocator_api
    6. 3.6. arc_new_cyclic
    7. 3.7. array_chunks
    8. 3.8. array_error_internals
    9. 3.9. array_map
    10. 3.10. array_methods
    11. 3.11. array_windows
    12. 3.12. array_zip
    13. 3.13. asm
    14. 3.14. assert_matches
    15. 3.15. async_stream
    16. 3.16. atomic_from_mut
    17. 3.17. atomic_mut_ptr
    18. 3.18. available_concurrency
    19. 3.19. backtrace
    20. 3.20. backtrace_frames
    21. 3.21. bench_black_box
    22. 3.22. binary_heap_as_slice
    23. 3.23. binary_heap_drain_sorted
    24. 3.24. binary_heap_into_iter_sorted
    25. 3.25. binary_heap_retain
    26. 3.26. bool_to_option
    27. 3.27. bound_as_ref
    28. 3.28. bound_cloned
    29. 3.29. box_into_boxed_slice
    30. 3.30. box_into_inner
    31. 3.31. box_into_pin
    32. 3.32. btree_drain_filter
    33. 3.33. bufwriter_into_raw_parts
    34. 3.34. c_void_variant
    35. 3.35. can_vector
    36. 3.36. cell_filter_map
    37. 3.37. cell_leak
    38. 3.38. cell_update
    39. 3.39. cfg_accessible
    40. 3.40. cfg_eval
    41. 3.41. char_error_internals
    42. 3.42. char_indices_offset
    43. 3.43. char_internals
    44. 3.44. coerce_unsized
    45. 3.45. command_access
    46. 3.46. concat_idents
    47. 3.47. const_align_of_val
    48. 3.48. const_align_of_val_raw
    49. 3.49. const_alloc_layout
    50. 3.50. const_assert_type
    51. 3.51. const_assume
    52. 3.52. const_btree_new
    53. 3.53. const_caller_location
    54. 3.54. const_cell_into_inner
    55. 3.55. const_cow_is_borrowed
    56. 3.56. const_cstr_unchecked
    57. 3.57. const_discriminant
    58. 3.58. const_float_bits_conv
    59. 3.59. const_float_classify
    60. 3.60. const_heap
    61. 3.61. const_int_unchecked_arith
    62. 3.62. const_intrinsic_copy
    63. 3.63. const_intrinsic_forget
    64. 3.64. const_io_structs
    65. 3.65. const_ip
    66. 3.66. const_ipv4
    67. 3.67. const_ipv6
    68. 3.68. const_likely
    69. 3.69. const_maybe_uninit_as_ptr
    70. 3.70. const_maybe_uninit_assume_init
    71. 3.71. const_nonnull_slice_from_raw_parts
    72. 3.72. const_option
    73. 3.73. const_pin
    74. 3.74. const_pref_align_of
    75. 3.75. const_ptr_is_null
    76. 3.76. const_ptr_offset
    77. 3.77. const_ptr_offset_from
    78. 3.78. const_ptr_read
    79. 3.79. const_ptr_write
    80. 3.80. const_raw_ptr_comparison
    81. 3.81. const_replace
    82. 3.82. const_result
    83. 3.83. const_size_of_val
    84. 3.84. const_size_of_val_raw
    85. 3.85. const_slice_first_last
    86. 3.86. const_slice_from_raw_parts
    87. 3.87. const_slice_ptr_len
    88. 3.88. const_socketaddr
    89. 3.89. const_str_from_utf8_unchecked
    90. 3.90. const_swap
    91. 3.91. const_transmute_copy
    92. 3.92. const_type_id
    93. 3.93. const_type_name
    94. 3.94. const_unreachable_unchecked
    95. 3.95. container_error_extra
    96. 3.96. control_flow_enum
    97. 3.97. convert_float_to_int
    98. 3.98. core_intrinsics
    99. 3.99. core_panic
    100. 3.100. core_private_bignum
    101. 3.101. core_private_diy_float
    102. 3.102. cow_is_borrowed
    103. 3.103. cstring_from_vec_with_nul
    104. 3.104. deadline_api
    105. 3.105. dec2flt
    106. 3.106. default_free_fn
    107. 3.107. derive_clone_copy
    108. 3.108. derive_eq
    109. 3.109. discriminant_kind
    110. 3.110. dispatch_from_dyn
    111. 3.111. div_duration
    112. 3.112. drain_filter
    113. 3.113. duration_constants
    114. 3.114. duration_consts_2
    115. 3.115. edition_panic
    116. 3.116. entry_insert
    117. 3.117. error_iter
    118. 3.118. error_type_id
    119. 3.119. exact_size_is_empty
    120. 3.120. extend_one
    121. 3.121. fd
    122. 3.122. fd_read
    123. 3.123. flt2dec
    124. 3.124. fmt_internals
    125. 3.125. fn_traits
    126. 3.126. forget_unsized
    127. 3.127. format_args_nl
    128. 3.128. future_poll_fn
    129. 3.129. gen_future
    130. 3.130. generator_trait
    131. 3.131. get_mut_unchecked
    132. 3.132. global_asm
    133. 3.133. hash_drain_filter
    134. 3.134. hash_raw_entry
    135. 3.135. hash_set_entry
    136. 3.136. hashmap_internals
    137. 3.137. inherent_ascii_escape
    138. 3.138. inplace_iteration
    139. 3.139. int_error_internals
    140. 3.140. int_error_matching
    141. 3.141. integer_atomics
    142. 3.142. internal_output_capture
    143. 3.143. into_future
    144. 3.144. io_into_inner_error_parts
    145. 3.145. io_read_to_string
    146. 3.146. io_slice_advance
    147. 3.147. ip
    148. 3.148. is_sorted
    149. 3.149. iter_advance_by
    150. 3.150. iter_intersperse
    151. 3.151. iter_is_partitioned
    152. 3.152. iter_map_while
    153. 3.153. iter_order_by
    154. 3.154. iter_partition_in_place
    155. 3.155. iter_zip
    156. 3.156. layout_for_ptr
    157. 3.157. liballoc_internals
    158. 3.158. libstd_sys_internals
    159. 3.159. libstd_thread_internals
    160. 3.160. linked_list_cursors
    161. 3.161. linked_list_prepend
    162. 3.162. linked_list_remove
    163. 3.163. llvm_asm
    164. 3.164. log_syntax
    165. 3.165. map_entry_replace
    166. 3.166. map_first_last
    167. 3.167. map_try_insert
    168. 3.168. maybe_uninit_array_assume_init
    169. 3.169. maybe_uninit_extra
    170. 3.170. maybe_uninit_ref
    171. 3.171. maybe_uninit_slice
    172. 3.172. maybe_uninit_uninit_array
    173. 3.173. maybe_uninit_write_slice
    174. 3.174. mutex_unlock
    175. 3.175. new_uninit
    176. 3.176. nonnull_slice_from_raw_parts
    177. 3.177. nonzero_is_power_of_two
    178. 3.178. num_as_ne_bytes
    179. 3.179. once_cell
    180. 3.180. option_get_or_insert_default
    181. 3.181. option_result_contains
    182. 3.182. option_result_unwrap_unchecked
    183. 3.183. option_zip
    184. 3.184. panic_abort
    185. 3.185. panic_info_message
    186. 3.186. panic_internals
    187. 3.187. panic_unwind
    188. 3.188. path_try_exists
    189. 3.189. pattern
    190. 3.190. peer_credentials_unix_socket
    191. 3.191. pin_static_ref
    192. 3.192. prelude_2015
    193. 3.193. prelude_2018
    194. 3.194. prelude_2021
    195. 3.195. print_internals
    196. 3.196. proc_macro_def_site
    197. 3.197. proc_macro_diagnostic
    198. 3.198. proc_macro_internals
    199. 3.199. proc_macro_is_available
    200. 3.200. proc_macro_quote
    201. 3.201. proc_macro_span
    202. 3.202. proc_macro_tracked_env
    203. 3.203. process_exitcode_placeholder
    204. 3.204. process_internals
    205. 3.205. profiler_runtime_lib
    206. 3.206. ptr_as_uninit
    207. 3.207. ptr_internals
    208. 3.208. ptr_metadata
    209. 3.209. raw
    210. 3.210. raw_os_nonzero
    211. 3.211. raw_vec_internals
    212. 3.212. read_initializer
    213. 3.213. ready_macro
    214. 3.214. receiver_trait
    215. 3.215. restricted_std
    216. 3.216. result_cloned
    217. 3.217. result_contains_err
    218. 3.218. result_copied
    219. 3.219. result_flattening
    220. 3.220. result_into_ok_or_err
    221. 3.221. rt
    222. 3.222. sealed
    223. 3.223. seek_stream_len
    224. 3.224. set_ptr_value
    225. 3.225. setgroups
    226. 3.226. sgx_platform
    227. 3.227. shrink_to
    228. 3.228. slice_as_chunks
    229. 3.229. slice_concat_ext
    230. 3.230. slice_concat_trait
    231. 3.231. slice_group_by
    232. 3.232. slice_index_methods
    233. 3.233. slice_internals
    234. 3.234. slice_partition_at_index
    235. 3.235. slice_partition_dedup
    236. 3.236. slice_pattern
    237. 3.237. slice_ptr_get
    238. 3.238. slice_ptr_len
    239. 3.239. slice_range
    240. 3.240. slice_split_at_unchecked
    241. 3.241. sort_internals
    242. 3.242. std_internals
    243. 3.243. stdsimd
    244. 3.244. step_trait
    245. 3.245. step_trait_ext
    246. 3.246. str_internals
    247. 3.247. str_split_as_str
    248. 3.248. str_split_inclusive_as_str
    249. 3.249. str_split_whitespace_as_str
    250. 3.250. string_drain_as_str
    251. 3.251. string_remove_matches
    252. 3.252. termination_trait_lib
    253. 3.253. test
    254. 3.254. thread_id_value
    255. 3.255. thread_local_const_init
    256. 3.256. thread_local_internals
    257. 3.257. thread_spawn_unchecked
    258. 3.258. toowned_clone_into
    259. 3.259. total_cmp
    260. 3.260. trace_macros
    261. 3.261. trusted_len
    262. 3.262. trusted_random_access
    263. 3.263. try_find
    264. 3.264. try_reserve
    265. 3.265. try_trait
    266. 3.266. try_trait_transition
    267. 3.267. try_trait_v2
    268. 3.268. type_name_of_val
    269. 3.269. unchecked_math
    270. 3.270. unicode_internals
    271. 3.271. unix_chroot
    272. 3.272. unix_process_wait_more
    273. 3.273. unix_socket_ancillary_data
    274. 3.274. unix_socket_peek
    275. 3.275. unsafe_cell_raw_get
    276. 3.276. unsize
    277. 3.277. unwrap_infallible
    278. 3.278. update_panic_count
    279. 3.279. variant_count
    280. 3.280. vec_into_raw_parts
    281. 3.281. vec_spare_capacity
    282. 3.282. vec_split_at_spare
    283. 3.283. vecdeque_binary_search
    284. 3.284. wasi_ext
    285. 3.285. windows_by_handle
    286. 3.286. windows_c
    287. 3.287. windows_file_type_ext
    288. 3.288. windows_handle
    289. 3.289. windows_net
    290. 3.290. windows_process_extensions_force_quotes
    291. 3.291. windows_stdio
    292. 3.292. with_options
    293. 3.293. wrapping_int_impl
    294. 3.294. wrapping_next_power_of_two
    295. 3.295. write_all_vectored

The Rust Unstable Book

Library Features