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

The Rust Unstable Book

Language features