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. profile
    5. 1.5. report_time
    6. 1.6. sanitizer
    7. 1.7. self_profile
    8. 1.8. self_profile_events
    9. 1.9. source_based_code_coverage
    10. 1.10. src_hash_algorithm
    11. 1.11. strip
    12. 1.12. tls_model
    13. 1.13. 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_efiapi
    5. 2.5. abi_msp430_interrupt
    6. 2.6. abi_ptx
    7. 2.7. abi_thiscall
    8. 2.8. abi_unadjusted
    9. 2.9. abi_vectorcall
    10. 2.10. abi_x86_interrupt
    11. 2.11. adx_target_feature
    12. 2.12. alloc_error_handler
    13. 2.13. allocator_internals
    14. 2.14. allow_fail
    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. associated_type_bounds
    21. 2.21. associated_type_defaults
    22. 2.22. async_closure
    23. 2.23. auto_traits
    24. 2.24. avx512_target_feature
    25. 2.25. bindings_after_at
    26. 2.26. box_patterns
    27. 2.27. box_syntax
    28. 2.28. c_variadic
    29. 2.29. capture_disjoint_fields
    30. 2.30. cfg_panic
    31. 2.31. cfg_sanitize
    32. 2.32. cfg_target_has_atomic
    33. 2.33. cfg_target_thread_local
    34. 2.34. cfg_version
    35. 2.35. cmpxchg16b_target_feature
    36. 2.36. cmse_nonsecure_entry
    37. 2.37. compiler_builtins
    38. 2.38. const_eval_limit
    39. 2.39. const_evaluatable_checked
    40. 2.40. const_extern_fn
    41. 2.41. const_fn
    42. 2.42. const_fn_floating_point_arithmetic
    43. 2.43. const_fn_fn_ptr_basics
    44. 2.44. const_fn_transmute
    45. 2.45. const_fn_union
    46. 2.46. const_generics
    47. 2.47. const_generics_defaults
    48. 2.48. const_impl_trait
    49. 2.49. const_in_array_repeat_expressions
    50. 2.50. const_mut_refs
    51. 2.51. const_panic
    52. 2.52. const_precise_live_drops
    53. 2.53. const_raw_ptr_deref
    54. 2.54. const_raw_ptr_to_usize_cast
    55. 2.55. const_refs_to_cell
    56. 2.56. const_trait_bound_opt_out
    57. 2.57. const_trait_impl
    58. 2.58. crate_visibility_modifier
    59. 2.59. custom_inner_attributes
    60. 2.60. custom_test_frameworks
    61. 2.61. decl_macro
    62. 2.62. default_alloc_error_handler
    63. 2.63. default_type_parameter_fallback
    64. 2.64. destructuring_assignment
    65. 2.65. doc_cfg
    66. 2.66. doc_keyword
    67. 2.67. doc_masked
    68. 2.68. doc_spotlight
    69. 2.69. dropck_eyepatch
    70. 2.70. edition_macro_pats
    71. 2.71. ermsb_target_feature
    72. 2.72. exclusive_range_pattern
    73. 2.73. exhaustive_patterns
    74. 2.74. extended_key_value_attributes
    75. 2.75. extern_types
    76. 2.76. external_doc
    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. format_args_capture
    82. 2.82. fundamental
    83. 2.83. generators
    84. 2.84. generic_associated_types
    85. 2.85. half_open_range_patterns
    86. 2.86. hexagon_target_feature
    87. 2.87. if_let_guard
    88. 2.88. impl_trait_in_bindings
    89. 2.89. in_band_lifetimes
    90. 2.90. infer_static_outlives_requirements
    91. 2.91. inline_const
    92. 2.92. intra_doc_pointers
    93. 2.93. intrinsics
    94. 2.94. isa_attribute
    95. 2.95. label_break_value
    96. 2.96. lang_items
    97. 2.97. lazy_normalization_consts
    98. 2.98. let_chains
    99. 2.99. link_args
    100. 2.100. link_cfg
    101. 2.101. link_llvm_intrinsics
    102. 2.102. linkage
    103. 2.103. lint_reasons
    104. 2.104. main
    105. 2.105. marker_trait_attr
    106. 2.106. member_constraints
    107. 2.107. min_specialization
    108. 2.108. mips_target_feature
    109. 2.109. movbe_target_feature
    110. 2.110. naked_functions
    111. 2.111. needs_panic_runtime
    112. 2.112. negative_impls
    113. 2.113. never_type
    114. 2.114. never_type_fallback
    115. 2.115. nll
    116. 2.116. no_core
    117. 2.117. no_niche
    118. 2.118. no_sanitize
    119. 2.119. non_ascii_idents
    120. 2.120. object_safe_for_dispatch
    121. 2.121. omit_gdb_pretty_printer_section
    122. 2.122. optimize_attribute
    123. 2.123. or_patterns
    124. 2.124. panic_runtime
    125. 2.125. platform_intrinsics
    126. 2.126. plugin
    127. 2.127. plugin_registrar
    128. 2.128. powerpc_target_feature
    129. 2.129. precise_pointer_size_matching
    130. 2.130. prelude_import
    131. 2.131. proc_macro_hygiene
    132. 2.132. profiler_runtime
    133. 2.133. raw_dylib
    134. 2.134. raw_ref_op
    135. 2.135. register_attr
    136. 2.136. register_tool
    137. 2.137. repr_simd
    138. 2.138. repr128
    139. 2.139. riscv_target_feature
    140. 2.140. rtm_target_feature
    141. 2.141. rustc_allow_const_fn_unstable
    142. 2.142. rustc_attrs
    143. 2.143. rustc_private
    144. 2.144. simd_ffi
    145. 2.145. specialization
    146. 2.146. sse4a_target_feature
    147. 2.147. staged_api
    148. 2.148. start
    149. 2.149. static_nobundle
    150. 2.150. stmt_expr_attributes
    151. 2.151. structural_match
    152. 2.152. target_feature_11
    153. 2.153. tbm_target_feature
    154. 2.154. test_2018_feature
    155. 2.155. thread_local
    156. 2.156. trait_alias
    157. 2.157. transparent_unions
    158. 2.158. trivial_bounds
    159. 2.159. try_blocks
    160. 2.160. type_alias_impl_trait
    161. 2.161. type_ascription
    162. 2.162. unboxed_closures
    163. 2.163. unsafe_block_in_unsafe_fn
    164. 2.164. unsized_fn_params
    165. 2.165. unsized_locals
    166. 2.166. unsized_tuple_coercion
    167. 2.167. untagged_unions
    168. 2.168. unwind_attributes
    169. 2.169. 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_mutate_strong_count
    7. 3.7. arc_new_cyclic
    8. 3.8. array_chunks
    9. 3.9. array_error_internals
    10. 3.10. array_from_ref
    11. 3.11. array_map
    12. 3.12. array_methods
    13. 3.13. array_value_iter
    14. 3.14. array_value_iter_slice
    15. 3.15. array_windows
    16. 3.16. array_zip
    17. 3.17. asm
    18. 3.18. assoc_char_consts
    19. 3.19. assoc_char_funcs
    20. 3.20. atomic_fetch_update
    21. 3.21. atomic_from_mut
    22. 3.22. atomic_mut_ptr
    23. 3.23. available_concurrency
    24. 3.24. backtrace
    25. 3.25. binary_heap_drain_sorted
    26. 3.26. binary_heap_into_iter_sorted
    27. 3.27. binary_heap_retain
    28. 3.28. bool_to_option
    29. 3.29. bound_as_ref
    30. 3.30. bound_cloned
    31. 3.31. box_into_boxed_slice
    32. 3.32. box_into_pin
    33. 3.33. btree_drain_filter
    34. 3.34. btree_retain
    35. 3.35. bufreader_seek_relative
    36. 3.36. bufwriter_into_raw_parts
    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. char_error_internals
    44. 3.44. char_internals
    45. 3.45. cmp_min_max_by
    46. 3.46. coerce_unsized
    47. 3.47. command_access
    48. 3.48. concat_idents
    49. 3.49. const_align_of_val
    50. 3.50. const_align_of_val_raw
    51. 3.51. const_alloc_layout
    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_checked_int_methods
    58. 3.58. const_cow_is_borrowed
    59. 3.59. const_cstr_unchecked
    60. 3.60. const_cttz
    61. 3.61. const_discriminant
    62. 3.62. const_euclidean_int_methods
    63. 3.63. const_float_bits_conv
    64. 3.64. const_float_classify
    65. 3.65. const_heap
    66. 3.66. const_int_unchecked_arith
    67. 3.67. const_intrinsic_copy
    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_nonnull_slice_from_raw_parts
    76. 3.76. const_option
    77. 3.77. const_overflowing_int_methods
    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_raw_ptr_comparison
    85. 3.85. const_size_of_val
    86. 3.86. const_size_of_val_raw
    87. 3.87. const_slice_from_raw_parts
    88. 3.88. const_slice_ptr_len
    89. 3.89. const_str_from_utf8_unchecked
    90. 3.90. const_type_id
    91. 3.91. const_type_name
    92. 3.92. const_unreachable_unchecked
    93. 3.93. const_wrapping_int_methods
    94. 3.94. container_error_extra
    95. 3.95. control_flow_enum
    96. 3.96. convert_float_to_int
    97. 3.97. core_intrinsics
    98. 3.98. core_panic
    99. 3.99. core_private_bignum
    100. 3.100. core_private_diy_float
    101. 3.101. cow_is_borrowed
    102. 3.102. cstring_from_vec_with_nul
    103. 3.103. deadline_api
    104. 3.104. debug_non_exhaustive
    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. duration_saturating_ops
    116. 3.116. duration_zero
    117. 3.117. entry_insert
    118. 3.118. error_iter
    119. 3.119. error_type_id
    120. 3.120. exact_size_is_empty
    121. 3.121. extend_one
    122. 3.122. fd
    123. 3.123. fd_read
    124. 3.124. fixed_size_array
    125. 3.125. flt2dec
    126. 3.126. fmt_as_str
    127. 3.127. fmt_internals
    128. 3.128. fn_traits
    129. 3.129. foo
    130. 3.130. forget_unsized
    131. 3.131. format_args_nl
    132. 3.132. future_poll_fn
    133. 3.133. gen_future
    134. 3.134. generator_trait
    135. 3.135. get_mut_unchecked
    136. 3.136. global_asm
    137. 3.137. hash_drain_filter
    138. 3.138. hash_raw_entry
    139. 3.139. hash_set_entry
    140. 3.140. hashmap_internals
    141. 3.141. inplace_iteration
    142. 3.142. int_bits_const
    143. 3.143. int_error_internals
    144. 3.144. int_error_matching
    145. 3.145. integer_atomics
    146. 3.146. internal_output_capture
    147. 3.147. into_future
    148. 3.148. io_into_inner_error_parts
    149. 3.149. io_read_to_string
    150. 3.150. io_slice_advance
    151. 3.151. ip
    152. 3.152. is_sorted
    153. 3.153. is_subnormal
    154. 3.154. iter_advance_by
    155. 3.155. iter_intersperse
    156. 3.156. iter_is_partitioned
    157. 3.157. iter_map_while
    158. 3.158. iter_order_by
    159. 3.159. iter_partition_in_place
    160. 3.160. iterator_fold_self
    161. 3.161. layout_for_ptr
    162. 3.162. liballoc_internals
    163. 3.163. libstd_sys_internals
    164. 3.164. libstd_thread_internals
    165. 3.165. linked_list_cursors
    166. 3.166. linked_list_prepend
    167. 3.167. linked_list_remove
    168. 3.168. llvm_asm
    169. 3.169. log_syntax
    170. 3.170. map_entry_replace
    171. 3.171. map_first_last
    172. 3.172. map_into_keys_values
    173. 3.173. maybe_uninit_array_assume_init
    174. 3.174. maybe_uninit_extra
    175. 3.175. maybe_uninit_ref
    176. 3.176. maybe_uninit_slice
    177. 3.177. maybe_uninit_uninit_array
    178. 3.178. maybe_uninit_write_slice
    179. 3.179. new_uninit
    180. 3.180. nonnull_slice_from_raw_parts
    181. 3.181. nonzero_is_power_of_two
    182. 3.182. nonzero_leading_trailing_zeros
    183. 3.183. num_as_ne_bytes
    184. 3.184. once_cell
    185. 3.185. once_poison
    186. 3.186. option_expect_none
    187. 3.187. option_insert
    188. 3.188. option_result_contains
    189. 3.189. option_unwrap_none
    190. 3.190. option_zip
    191. 3.191. ordering_helpers
    192. 3.192. osstring_ascii
    193. 3.193. panic_abort
    194. 3.194. panic_info_message
    195. 3.195. panic_internals
    196. 3.196. panic_unwind
    197. 3.197. partition_point
    198. 3.198. pattern
    199. 3.199. peekable_next_if
    200. 3.200. peekable_peek_mut
    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. range_bounds_assert_len
    217. 3.217. raw
    218. 3.218. raw_ref_macros
    219. 3.219. raw_vec_internals
    220. 3.220. read_initializer
    221. 3.221. ready_macro
    222. 3.222. receiver_trait
    223. 3.223. restricted_std
    224. 3.224. result_cloned
    225. 3.225. result_contains_err
    226. 3.226. result_copied
    227. 3.227. result_flattening
    228. 3.228. rt
    229. 3.229. seek_convenience
    230. 3.230. set_ptr_value
    231. 3.231. setgroups
    232. 3.232. sgx_platform
    233. 3.233. shrink_to
    234. 3.234. slice_as_chunks
    235. 3.235. slice_concat_ext
    236. 3.236. slice_concat_trait
    237. 3.237. slice_fill_with
    238. 3.238. slice_group_by
    239. 3.239. slice_index_methods
    240. 3.240. slice_internals
    241. 3.241. slice_iter_mut_as_slice
    242. 3.242. slice_partition_at_index
    243. 3.243. slice_partition_dedup
    244. 3.244. slice_pattern
    245. 3.245. slice_ptr_get
    246. 3.246. slice_ptr_len
    247. 3.247. slice_split_at_unchecked
    248. 3.248. sort_internals
    249. 3.249. std_internals
    250. 3.250. stdsimd
    251. 3.251. step_trait
    252. 3.252. step_trait_ext
    253. 3.253. str_internals
    254. 3.254. str_split_as_str
    255. 3.255. str_split_inclusive_as_str
    256. 3.256. str_split_once
    257. 3.257. string_drain_as_str
    258. 3.258. termination_trait_lib
    259. 3.259. test
    260. 3.260. thread_id_value
    261. 3.261. thread_local_internals
    262. 3.262. thread_spawn_unchecked
    263. 3.263. toowned_clone_into
    264. 3.264. total_cmp
    265. 3.265. trace_macros
    266. 3.266. trusted_len
    267. 3.267. trusted_random_access
    268. 3.268. try_find
    269. 3.269. try_reserve
    270. 3.270. try_trait
    271. 3.271. type_name_of_val
    272. 3.272. unchecked_math
    273. 3.273. unicode_internals
    274. 3.274. unix_process_wait_more
    275. 3.275. unix_socket_ancillary_data
    276. 3.276. unix_socket_peek
    277. 3.277. unsafe_cell_raw_get
    278. 3.278. unsigned_abs
    279. 3.279. unsize
    280. 3.280. unwrap_infallible
    281. 3.281. update_panic_count
    282. 3.282. variant_count
    283. 3.283. vec_into_raw_parts
    284. 3.284. vec_spare_capacity
    285. 3.285. vecdeque_binary_search
    286. 3.286. wake_trait
    287. 3.287. wasi_ext
    288. 3.288. windows_by_handle
    289. 3.289. windows_c
    290. 3.290. windows_file_type_ext
    291. 3.291. windows_handle
    292. 3.292. windows_net
    293. 3.293. windows_stdio
    294. 3.294. with_options
    295. 3.295. wrapping_int_impl
    296. 3.296. wrapping_next_power_of_two
    297. 3.297. write_all_vectored

The Rust Unstable Book

Language features