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

The Rust Unstable Book

Language features