1. The Unstable Book
  2. 1. Compiler flags
    1. 1.1. codegen_backend
    2. 1.2. control_flow_guard
    3. 1.3. debug_info_for_profiling
    4. 1.4. emit_stack_sizes
    5. 1.5. extern_location
    6. 1.6. instrument_coverage
    7. 1.7. location_detail
    8. 1.8. move_size_limit
    9. 1.9. no_unique_section_names
    10. 1.10. profile
    11. 1.11. profile_sample_use
    12. 1.12. remap_cwd_prefix
    13. 1.13. report_time
    14. 1.14. sanitizer
    15. 1.15. self_profile
    16. 1.16. self_profile_events
    17. 1.17. source_based_code_coverage
    18. 1.18. src_hash_algorithm
    19. 1.19. temps_dir
    20. 1.20. tls_model
    21. 1.21. 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. adt_const_params
    13. 2.13. adx_target_feature
    14. 2.14. alloc_error_handler
    15. 2.15. allocator_internals
    16. 2.16. allow_fail
    17. 2.17. allow_internal_unsafe
    18. 2.18. allow_internal_unstable
    19. 2.19. arbitrary_enum_discriminant
    20. 2.20. arbitrary_self_types
    21. 2.21. arm_target_feature
    22. 2.22. asm_const
    23. 2.23. asm_experimental_arch
    24. 2.24. asm_sym
    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_panic
    37. 2.37. cfg_sanitize
    38. 2.38. cfg_target_abi
    39. 2.39. cfg_target_has_atomic
    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_fn_fn_ptr_basics
    51. 2.51. const_fn_trait_bound
    52. 2.52. const_for
    53. 2.53. const_generics_defaults
    54. 2.54. const_impl_trait
    55. 2.55. const_mut_refs
    56. 2.56. const_precise_live_drops
    57. 2.57. const_refs_to_cell
    58. 2.58. const_trait_impl
    59. 2.59. const_try
    60. 2.60. crate_visibility_modifier
    61. 2.61. custom_inner_attributes
    62. 2.62. custom_test_frameworks
    63. 2.63. decl_macro
    64. 2.64. default_alloc_error_handler
    65. 2.65. default_type_parameter_fallback
    66. 2.66. derive_default_enum
    67. 2.67. destructuring_assignment
    68. 2.68. doc_auto_cfg
    69. 2.69. doc_cfg
    70. 2.70. doc_cfg_hide
    71. 2.71. doc_masked
    72. 2.72. doc_notable_trait
    73. 2.73. dropck_eyepatch
    74. 2.74. ermsb_target_feature
    75. 2.75. exclusive_range_pattern
    76. 2.76. exhaustive_patterns
    77. 2.77. explicit_generic_args_with_impl_trait
    78. 2.78. extern_types
    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. fundamental
    85. 2.85. generators
    86. 2.86. generic_arg_infer
    87. 2.87. generic_associated_types
    88. 2.88. generic_const_exprs
    89. 2.89. half_open_range_patterns
    90. 2.90. hexagon_target_feature
    91. 2.91. if_let_guard
    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. inline_const_pat
    98. 2.98. intra_doc_pointers
    99. 2.99. intrinsics
    100. 2.100. isa_attribute
    101. 2.101. label_break_value
    102. 2.102. lang_items
    103. 2.103. large_assignments
    104. 2.104. let_chains
    105. 2.105. let_else
    106. 2.106. link_cfg
    107. 2.107. link_llvm_intrinsics
    108. 2.108. linkage
    109. 2.109. lint_reasons
    110. 2.110. marker_trait_attr
    111. 2.111. min_specialization
    112. 2.112. mips_target_feature
    113. 2.113. more_qualified_paths
    114. 2.114. movbe_target_feature
    115. 2.115. must_not_suspend
    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. non_exhaustive_omitted_patterns_lint
    132. 2.132. object_safe_for_dispatch
    133. 2.133. omit_gdb_pretty_printer_section
    134. 2.134. optimize_attribute
    135. 2.135. panic_runtime
    136. 2.136. platform_intrinsics
    137. 2.137. plugin
    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. repr_simd
    148. 2.148. repr128
    149. 2.149. riscv_target_feature
    150. 2.150. rtm_target_feature
    151. 2.151. rustc_allow_const_fn_unstable
    152. 2.152. rustc_attrs
    153. 2.153. rustc_private
    154. 2.154. rustdoc_internals
    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. trait_upcasting
    169. 2.169. transparent_unions
    170. 2.170. trivial_bounds
    171. 2.171. try_blocks
    172. 2.172. type_alias_impl_trait
    173. 2.173. type_ascription
    174. 2.174. type_changing_struct_update
    175. 2.175. unboxed_closures
    176. 2.176. unsized_fn_params
    177. 2.177. unsized_locals
    178. 2.178. unsized_tuple_coercion
    179. 2.179. untagged_unions
    180. 2.180. wasm_abi
    181. 2.181. 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. allocator_api
    5. 3.5. arc_new_cyclic
    6. 3.6. array_chunks
    7. 3.7. array_error_internals
    8. 3.8. array_from_fn
    9. 3.9. array_methods
    10. 3.10. array_windows
    11. 3.11. array_zip
    12. 3.12. as_array_of_cells
    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_parallelism
    19. 3.19. backtrace
    20. 3.20. backtrace_frames
    21. 3.21. bench_black_box
    22. 3.22. bigint_helper_methods
    23. 3.23. binary_heap_as_slice
    24. 3.24. binary_heap_drain_sorted
    25. 3.25. binary_heap_into_iter_sorted
    26. 3.26. binary_heap_retain
    27. 3.27. bool_to_option
    28. 3.28. bound_as_ref
    29. 3.29. bound_map
    30. 3.30. box_into_boxed_slice
    31. 3.31. box_into_inner
    32. 3.32. box_into_pin
    33. 3.33. btree_drain_filter
    34. 3.34. buf_read_has_data_left
    35. 3.35. build_hasher_simple_hash_one
    36. 3.36. c_size_t
    37. 3.37. c_void_variant
    38. 3.38. can_vector
    39. 3.39. cell_filter_map
    40. 3.40. cell_leak
    41. 3.41. cell_update
    42. 3.42. cfg_accessible
    43. 3.43. cfg_eval
    44. 3.44. char_error_internals
    45. 3.45. char_indices_offset
    46. 3.46. char_internals
    47. 3.47. coerce_unsized
    48. 3.48. concat_idents
    49. 3.49. const_align_of_val
    50. 3.50. const_align_of_val_raw
    51. 3.51. const_align_offset
    52. 3.52. const_alloc_layout
    53. 3.53. const_arguments_as_str
    54. 3.54. const_array_from_ref
    55. 3.55. const_assert_type
    56. 3.56. const_assume
    57. 3.57. const_bigint_helper_methods
    58. 3.58. const_btree_new
    59. 3.59. const_caller_location
    60. 3.60. const_cell_into_inner
    61. 3.61. const_char_convert
    62. 3.62. const_convert
    63. 3.63. const_cow_is_borrowed
    64. 3.64. const_cstr_unchecked
    65. 3.65. const_default_impls
    66. 3.66. const_deref
    67. 3.67. const_discriminant
    68. 3.68. const_eval_select
    69. 3.69. const_float_bits_conv
    70. 3.70. const_float_classify
    71. 3.71. const_fmt_arguments_new
    72. 3.72. const_format_args
    73. 3.73. const_heap
    74. 3.74. const_inherent_unchecked_arith
    75. 3.75. const_int_unchecked_arith
    76. 3.76. const_intrinsic_copy
    77. 3.77. const_intrinsic_forget
    78. 3.78. const_intrinsic_raw_eq
    79. 3.79. const_io_structs
    80. 3.80. const_ip
    81. 3.81. const_ipv4
    82. 3.82. const_ipv6
    83. 3.83. const_likely
    84. 3.84. const_maybe_uninit_as_ptr
    85. 3.85. const_maybe_uninit_assume_init
    86. 3.86. const_maybe_uninit_write
    87. 3.87. const_nonnull_slice_from_raw_parts
    88. 3.88. const_num_from_num
    89. 3.89. const_ops
    90. 3.90. const_option
    91. 3.91. const_pin
    92. 3.92. const_pref_align_of
    93. 3.93. const_ptr_is_null
    94. 3.94. const_ptr_offset
    95. 3.95. const_ptr_offset_from
    96. 3.96. const_ptr_read
    97. 3.97. const_ptr_write
    98. 3.98. const_raw_ptr_comparison
    99. 3.99. const_replace
    100. 3.100. const_result
    101. 3.101. const_size_of_val
    102. 3.102. const_size_of_val_raw
    103. 3.103. const_slice_first_last
    104. 3.104. const_slice_from_raw_parts
    105. 3.105. const_slice_from_ref
    106. 3.106. const_slice_ptr_len
    107. 3.107. const_socketaddr
    108. 3.108. const_str_from_utf8
    109. 3.109. const_str_from_utf8_unchecked_mut
    110. 3.110. const_swap
    111. 3.111. const_transmute_copy
    112. 3.112. const_type_id
    113. 3.113. const_type_name
    114. 3.114. const_unsafecell_get_mut
    115. 3.115. container_error_extra
    116. 3.116. control_flow_enum
    117. 3.117. convert_float_to_int
    118. 3.118. core_intrinsics
    119. 3.119. core_panic
    120. 3.120. core_private_bignum
    121. 3.121. core_private_diy_float
    122. 3.122. cow_is_borrowed
    123. 3.123. cursor_remaining
    124. 3.124. deadline_api
    125. 3.125. dec2flt
    126. 3.126. default_free_fn
    127. 3.127. derive_clone_copy
    128. 3.128. derive_eq
    129. 3.129. dir_entry_ext2
    130. 3.130. discriminant_kind
    131. 3.131. dispatch_from_dyn
    132. 3.132. div_duration
    133. 3.133. drain_filter
    134. 3.134. duration_checked_float
    135. 3.135. duration_constants
    136. 3.136. duration_consts_float
    137. 3.137. edition_panic
    138. 3.138. entry_insert
    139. 3.139. error_iter
    140. 3.140. error_type_id
    141. 3.141. exact_size_is_empty
    142. 3.142. exit_status_error
    143. 3.143. extend_one
    144. 3.144. fd
    145. 3.145. fd_read
    146. 3.146. float_minimum_maximum
    147. 3.147. flt2dec
    148. 3.148. fmt_internals
    149. 3.149. fn_traits
    150. 3.150. forget_unsized
    151. 3.151. format_args_nl
    152. 3.152. future_poll_fn
    153. 3.153. gen_future
    154. 3.154. generator_trait
    155. 3.155. get_mut_unchecked
    156. 3.156. global_asm
    157. 3.157. hash_drain_filter
    158. 3.158. hash_raw_entry
    159. 3.159. hash_set_entry
    160. 3.160. hashmap_internals
    161. 3.161. inherent_ascii_escape
    162. 3.162. inplace_iteration
    163. 3.163. int_abs_diff
    164. 3.164. int_error_internals
    165. 3.165. int_log
    166. 3.166. int_roundings
    167. 3.167. integer_atomics
    168. 3.168. internal_output_capture
    169. 3.169. into_future
    170. 3.170. io_error_more
    171. 3.171. io_error_uncategorized
    172. 3.172. io_read_to_string
    173. 3.173. io_safety
    174. 3.174. io_slice_advance
    175. 3.175. ip
    176. 3.176. is_sorted
    177. 3.177. iter_advance_by
    178. 3.178. iter_intersperse
    179. 3.179. iter_is_partitioned
    180. 3.180. iter_order_by
    181. 3.181. iter_partition_in_place
    182. 3.182. iter_zip
    183. 3.183. layout_for_ptr
    184. 3.184. liballoc_internals
    185. 3.185. libstd_sys_internals
    186. 3.186. libstd_thread_internals
    187. 3.187. linked_list_cursors
    188. 3.188. linked_list_remove
    189. 3.189. linux_pidfd
    190. 3.190. llvm_asm
    191. 3.191. log_syntax
    192. 3.192. map_entry_replace
    193. 3.193. map_first_last
    194. 3.194. map_try_insert
    195. 3.195. maybe_uninit_array_assume_init
    196. 3.196. maybe_uninit_extra
    197. 3.197. maybe_uninit_slice
    198. 3.198. maybe_uninit_uninit_array
    199. 3.199. maybe_uninit_write_slice
    200. 3.200. mixed_integer_ops
    201. 3.201. mutex_unlock
    202. 3.202. new_uninit
    203. 3.203. nonnull_slice_from_raw_parts
    204. 3.204. nonzero_is_power_of_two
    205. 3.205. nonzero_ops
    206. 3.206. numfmt
    207. 3.207. once_cell
    208. 3.208. option_get_or_insert_default
    209. 3.209. option_result_contains
    210. 3.210. option_zip
    211. 3.211. panic_abort
    212. 3.212. panic_always_abort
    213. 3.213. panic_info_message
    214. 3.214. panic_internals
    215. 3.215. panic_unwind
    216. 3.216. path_file_prefix
    217. 3.217. path_try_exists
    218. 3.218. pattern
    219. 3.219. peer_credentials_unix_socket
    220. 3.220. pin_deref_mut
    221. 3.221. pin_static_ref
    222. 3.222. poll_ready
    223. 3.223. print_internals
    224. 3.224. proc_macro_def_site
    225. 3.225. proc_macro_diagnostic
    226. 3.226. proc_macro_expand
    227. 3.227. proc_macro_internals
    228. 3.228. proc_macro_quote
    229. 3.229. proc_macro_span
    230. 3.230. proc_macro_span_shrink
    231. 3.231. proc_macro_tracked_env
    232. 3.232. process_exitcode_placeholder
    233. 3.233. process_internals
    234. 3.234. profiler_runtime_lib
    235. 3.235. ptr_as_uninit
    236. 3.236. ptr_internals
    237. 3.237. ptr_metadata
    238. 3.238. raw_os_nonzero
    239. 3.239. raw_vec_internals
    240. 3.240. read_initializer
    241. 3.241. ready_macro
    242. 3.242. receiver_trait
    243. 3.243. restricted_std
    244. 3.244. result_cloned
    245. 3.245. result_contains_err
    246. 3.246. result_copied
    247. 3.247. result_flattening
    248. 3.248. result_into_ok_or_err
    249. 3.249. rt
    250. 3.250. saturating_int_impl
    251. 3.251. sealed
    252. 3.252. seek_stream_len
    253. 3.253. set_ptr_value
    254. 3.254. setgroups
    255. 3.255. sgx_platform
    256. 3.256. slice_as_chunks
    257. 3.257. slice_concat_ext
    258. 3.258. slice_concat_trait
    259. 3.259. slice_group_by
    260. 3.260. slice_index_methods
    261. 3.261. slice_internals
    262. 3.262. slice_partition_at_index
    263. 3.263. slice_partition_dedup
    264. 3.264. slice_pattern
    265. 3.265. slice_ptr_get
    266. 3.266. slice_ptr_len
    267. 3.267. slice_range
    268. 3.268. slice_split_at_unchecked
    269. 3.269. slice_swap_unchecked
    270. 3.270. solid_ext
    271. 3.271. sort_internals
    272. 3.272. split_array
    273. 3.273. std_internals
    274. 3.274. stdin_forwarders
    275. 3.275. stdio_locked
    276. 3.276. stdsimd
    277. 3.277. step_trait
    278. 3.278. str_internals
    279. 3.279. str_split_as_str
    280. 3.280. str_split_inclusive_as_str
    281. 3.281. str_split_whitespace_as_str
    282. 3.282. stream_from_iter
    283. 3.283. string_extend_from_within
    284. 3.284. string_remove_matches
    285. 3.285. tcp_linger
    286. 3.286. tcplistener_into_incoming
    287. 3.287. termination_trait_lib
    288. 3.288. test
    289. 3.289. thread_id_value
    290. 3.290. thread_is_running
    291. 3.291. thread_local_const_init
    292. 3.292. thread_local_internals
    293. 3.293. thread_spawn_unchecked
    294. 3.294. toowned_clone_into
    295. 3.295. total_cmp
    296. 3.296. trace_macros
    297. 3.297. track_path
    298. 3.298. trusted_len
    299. 3.299. trusted_random_access
    300. 3.300. trusted_step
    301. 3.301. try_find
    302. 3.302. try_reserve_kind
    303. 3.303. try_trait_v2
    304. 3.304. type_name_of_val
    305. 3.305. unchecked_math
    306. 3.306. unicode_internals
    307. 3.307. unix_chown
    308. 3.308. unix_socket_abstract
    309. 3.309. unix_socket_ancillary_data
    310. 3.310. unix_socket_peek
    311. 3.311. unsize
    312. 3.312. unwrap_infallible
    313. 3.313. unzip_option
    314. 3.314. update_panic_count
    315. 3.315. variant_count
    316. 3.316. vec_into_raw_parts
    317. 3.317. vec_retain_mut
    318. 3.318. vec_spare_capacity
    319. 3.319. vec_split_at_spare
    320. 3.320. wasi_ext
    321. 3.321. windows_by_handle
    322. 3.322. windows_c
    323. 3.323. windows_file_type_ext
    324. 3.324. windows_handle
    325. 3.325. windows_net
    326. 3.326. windows_process_extensions_force_quotes
    327. 3.327. windows_process_extensions_raw_arg
    328. 3.328. windows_stdio
    329. 3.329. wrapping_int_impl
    330. 3.330. wrapping_next_power_of_two
    331. 3.331. write_all_vectored

The Rust Unstable Book

Language features