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. avx512_target_feature
    24. 2.24. bindings_after_at
    25. 2.25. box_patterns
    26. 2.26. box_syntax
    27. 2.27. c_variadic
    28. 2.28. capture_disjoint_fields
    29. 2.29. cfg_panic
    30. 2.30. cfg_sanitize
    31. 2.31. cfg_target_has_atomic
    32. 2.32. cfg_target_thread_local
    33. 2.33. cfg_version
    34. 2.34. cmpxchg16b_target_feature
    35. 2.35. cmse_nonsecure_entry
    36. 2.36. compiler_builtins
    37. 2.37. const_eval_limit
    38. 2.38. const_evaluatable_checked
    39. 2.39. const_extern_fn
    40. 2.40. const_fn
    41. 2.41. const_fn_floating_point_arithmetic
    42. 2.42. const_fn_fn_ptr_basics
    43. 2.43. const_fn_transmute
    44. 2.44. const_fn_union
    45. 2.45. const_generics
    46. 2.46. const_impl_trait
    47. 2.47. const_in_array_repeat_expressions
    48. 2.48. const_mut_refs
    49. 2.49. const_panic
    50. 2.50. const_precise_live_drops
    51. 2.51. const_raw_ptr_deref
    52. 2.52. const_raw_ptr_to_usize_cast
    53. 2.53. const_trait_bound_opt_out
    54. 2.54. const_trait_impl
    55. 2.55. crate_visibility_modifier
    56. 2.56. custom_inner_attributes
    57. 2.57. custom_test_frameworks
    58. 2.58. decl_macro
    59. 2.59. default_alloc_error_handler
    60. 2.60. default_type_parameter_fallback
    61. 2.61. destructuring_assignment
    62. 2.62. doc_cfg
    63. 2.63. doc_keyword
    64. 2.64. doc_masked
    65. 2.65. doc_spotlight
    66. 2.66. dropck_eyepatch
    67. 2.67. ermsb_target_feature
    68. 2.68. exclusive_range_pattern
    69. 2.69. exhaustive_patterns
    70. 2.70. extern_types
    71. 2.71. external_doc
    72. 2.72. f16c_target_feature
    73. 2.73. ffi_const
    74. 2.74. ffi_pure
    75. 2.75. ffi_returns_twice
    76. 2.76. format_args_capture
    77. 2.77. fundamental
    78. 2.78. generators
    79. 2.79. generic_associated_types
    80. 2.80. half_open_range_patterns
    81. 2.81. hexagon_target_feature
    82. 2.82. if_let_guard
    83. 2.83. impl_trait_in_bindings
    84. 2.84. in_band_lifetimes
    85. 2.85. infer_static_outlives_requirements
    86. 2.86. inline_const
    87. 2.87. intrinsics
    88. 2.88. isa_attribute
    89. 2.89. label_break_value
    90. 2.90. lang_items
    91. 2.91. lazy_normalization_consts
    92. 2.92. let_chains
    93. 2.93. link_args
    94. 2.94. link_cfg
    95. 2.95. link_llvm_intrinsics
    96. 2.96. linkage
    97. 2.97. lint_reasons
    98. 2.98. main
    99. 2.99. marker_trait_attr
    100. 2.100. member_constraints
    101. 2.101. min_const_generics
    102. 2.102. min_specialization
    103. 2.103. mips_target_feature
    104. 2.104. movbe_target_feature
    105. 2.105. naked_functions
    106. 2.106. needs_panic_runtime
    107. 2.107. negative_impls
    108. 2.108. never_type
    109. 2.109. never_type_fallback
    110. 2.110. nll
    111. 2.111. no_core
    112. 2.112. no_niche
    113. 2.113. no_sanitize
    114. 2.114. non_ascii_idents
    115. 2.115. object_safe_for_dispatch
    116. 2.116. omit_gdb_pretty_printer_section
    117. 2.117. optimize_attribute
    118. 2.118. optin_builtin_traits
    119. 2.119. or_patterns
    120. 2.120. panic_runtime
    121. 2.121. platform_intrinsics
    122. 2.122. plugin
    123. 2.123. plugin_registrar
    124. 2.124. powerpc_target_feature
    125. 2.125. precise_pointer_size_matching
    126. 2.126. prelude_import
    127. 2.127. proc_macro_hygiene
    128. 2.128. profiler_runtime
    129. 2.129. raw_dylib
    130. 2.130. raw_ref_op
    131. 2.131. register_attr
    132. 2.132. register_tool
    133. 2.133. repr_simd
    134. 2.134. repr128
    135. 2.135. riscv_target_feature
    136. 2.136. rtm_target_feature
    137. 2.137. rustc_allow_const_fn_unstable
    138. 2.138. rustc_attrs
    139. 2.139. rustc_private
    140. 2.140. simd_ffi
    141. 2.141. specialization
    142. 2.142. sse4a_target_feature
    143. 2.143. staged_api
    144. 2.144. start
    145. 2.145. static_nobundle
    146. 2.146. stmt_expr_attributes
    147. 2.147. structural_match
    148. 2.148. target_feature_11
    149. 2.149. tbm_target_feature
    150. 2.150. test_2018_feature
    151. 2.151. thread_local
    152. 2.152. trait_alias
    153. 2.153. transparent_unions
    154. 2.154. trivial_bounds
    155. 2.155. try_blocks
    156. 2.156. type_alias_impl_trait
    157. 2.157. type_ascription
    158. 2.158. unboxed_closures
    159. 2.159. unsafe_block_in_unsafe_fn
    160. 2.160. unsized_fn_params
    161. 2.161. unsized_locals
    162. 2.162. unsized_tuple_coercion
    163. 2.163. untagged_unions
    164. 2.164. unwind_attributes
    165. 2.165. 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. asm
    17. 3.17. assoc_char_consts
    18. 3.18. assoc_char_funcs
    19. 3.19. atomic_fetch_update
    20. 3.20. atomic_from_mut
    21. 3.21. atomic_mut_ptr
    22. 3.22. available_concurrency
    23. 3.23. backtrace
    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_cloned
    29. 3.29. box_into_boxed_slice
    30. 3.30. box_into_pin
    31. 3.31. btree_drain_filter
    32. 3.32. btree_retain
    33. 3.33. bufreader_seek_relative
    34. 3.34. c_void_variant
    35. 3.35. can_vector
    36. 3.36. cell_leak
    37. 3.37. cell_update
    38. 3.38. cfg_accessible
    39. 3.39. char_error_internals
    40. 3.40. char_internals
    41. 3.41. clamp
    42. 3.42. cmp_min_max_by
    43. 3.43. coerce_unsized
    44. 3.44. command_access
    45. 3.45. concat_idents
    46. 3.46. const_align_of_val
    47. 3.47. const_alloc_layout
    48. 3.48. const_assume
    49. 3.49. const_btree_new
    50. 3.50. const_caller_location
    51. 3.51. const_cell_into_inner
    52. 3.52. const_checked_int_methods
    53. 3.53. const_cow_is_borrowed
    54. 3.54. const_cstr_unchecked
    55. 3.55. const_cttz
    56. 3.56. const_discriminant
    57. 3.57. const_euclidean_int_methods
    58. 3.58. const_float_bits_conv
    59. 3.59. const_float_classify
    60. 3.60. const_int_pow
    61. 3.61. const_int_unchecked_arith
    62. 3.62. const_io_structs
    63. 3.63. const_ip
    64. 3.64. const_ipv4
    65. 3.65. const_ipv6
    66. 3.66. const_likely
    67. 3.67. const_maybe_uninit_as_ptr
    68. 3.68. const_nonnull_slice_from_raw_parts
    69. 3.69. const_option
    70. 3.70. const_overflowing_int_methods
    71. 3.71. const_pin
    72. 3.72. const_pref_align_of
    73. 3.73. const_ptr_is_null
    74. 3.74. const_ptr_offset
    75. 3.75. const_ptr_offset_from
    76. 3.76. const_raw_ptr_comparison
    77. 3.77. const_size_of_val
    78. 3.78. const_slice_from_raw_parts
    79. 3.79. const_slice_ptr_len
    80. 3.80. const_str_from_utf8_unchecked
    81. 3.81. const_type_id
    82. 3.82. const_type_name
    83. 3.83. const_unreachable_unchecked
    84. 3.84. const_wrapping_int_methods
    85. 3.85. constctlz
    86. 3.86. container_error_extra
    87. 3.87. control_flow_enum
    88. 3.88. convert_float_to_int
    89. 3.89. core_intrinsics
    90. 3.90. core_panic
    91. 3.91. core_private_bignum
    92. 3.92. core_private_diy_float
    93. 3.93. cow_is_borrowed
    94. 3.94. cstring_from_vec_with_nul
    95. 3.95. deadline_api
    96. 3.96. debug_non_exhaustive
    97. 3.97. dec2flt
    98. 3.98. default_free_fn
    99. 3.99. deque_range
    100. 3.100. derive_clone_copy
    101. 3.101. derive_eq
    102. 3.102. discriminant_kind
    103. 3.103. dispatch_from_dyn
    104. 3.104. div_duration
    105. 3.105. drain_filter
    106. 3.106. duration_constants
    107. 3.107. duration_consts_2
    108. 3.108. duration_saturating_ops
    109. 3.109. duration_zero
    110. 3.110. entry_insert
    111. 3.111. error_iter
    112. 3.112. error_type_id
    113. 3.113. exact_size_is_empty
    114. 3.114. extend_one
    115. 3.115. fd
    116. 3.116. fd_read
    117. 3.117. fixed_size_array
    118. 3.118. flt2dec
    119. 3.119. fmt_as_str
    120. 3.120. fmt_internals
    121. 3.121. fn_traits
    122. 3.122. foo
    123. 3.123. forget_unsized
    124. 3.124. format_args_nl
    125. 3.125. future_poll_fn
    126. 3.126. gen_future
    127. 3.127. generator_trait
    128. 3.128. get_mut_unchecked
    129. 3.129. global_asm
    130. 3.130. hash_drain_filter
    131. 3.131. hash_raw_entry
    132. 3.132. hash_set_entry
    133. 3.133. hashmap_internals
    134. 3.134. inplace_iteration
    135. 3.135. int_bits_const
    136. 3.136. int_error_internals
    137. 3.137. int_error_matching
    138. 3.138. integer_atomics
    139. 3.139. internal_output_capture
    140. 3.140. into_future
    141. 3.141. io_slice_advance
    142. 3.142. ip
    143. 3.143. is_sorted
    144. 3.144. iter_advance_by
    145. 3.145. iter_is_partitioned
    146. 3.146. iter_map_while
    147. 3.147. iter_order_by
    148. 3.148. iter_partition_in_place
    149. 3.149. iterator_fold_self
    150. 3.150. layout_for_ptr
    151. 3.151. liballoc_internals
    152. 3.152. libstd_sys_internals
    153. 3.153. libstd_thread_internals
    154. 3.154. linked_list_cursors
    155. 3.155. linked_list_extras
    156. 3.156. linked_list_prepend
    157. 3.157. linked_list_remove
    158. 3.158. llvm_asm
    159. 3.159. log_syntax
    160. 3.160. map_entry_replace
    161. 3.161. map_first_last
    162. 3.162. map_into_keys_values
    163. 3.163. maybe_uninit_extra
    164. 3.164. maybe_uninit_ref
    165. 3.165. maybe_uninit_slice
    166. 3.166. maybe_uninit_uninit_array
    167. 3.167. new_uninit
    168. 3.168. nonnull_slice_from_raw_parts
    169. 3.169. nonzero_leading_trailing_zeros
    170. 3.170. num_as_ne_bytes
    171. 3.171. once_cell
    172. 3.172. once_poison
    173. 3.173. option_expect_none
    174. 3.174. option_insert
    175. 3.175. option_result_contains
    176. 3.176. option_unwrap_none
    177. 3.177. option_zip
    178. 3.178. or_insert_with_key
    179. 3.179. osstring_ascii
    180. 3.180. panic_abort
    181. 3.181. panic_any
    182. 3.182. panic_info_message
    183. 3.183. panic_internals
    184. 3.184. panic_unwind
    185. 3.185. partition_point
    186. 3.186. pattern
    187. 3.187. peekable_next_if
    188. 3.188. peer_credentials_unix_socket
    189. 3.189. pin_static_ref
    190. 3.190. poll_map
    191. 3.191. print_internals
    192. 3.192. proc_macro_def_site
    193. 3.193. proc_macro_diagnostic
    194. 3.194. proc_macro_internals
    195. 3.195. proc_macro_is_available
    196. 3.196. proc_macro_quote
    197. 3.197. proc_macro_span
    198. 3.198. proc_macro_tracked_env
    199. 3.199. process_exitcode_placeholder
    200. 3.200. process_internals
    201. 3.201. profiler_runtime_lib
    202. 3.202. ptr_as_uninit
    203. 3.203. ptr_internals
    204. 3.204. range_bounds_assert_len
    205. 3.205. raw
    206. 3.206. raw_ref_macros
    207. 3.207. raw_vec_internals
    208. 3.208. read_initializer
    209. 3.209. ready_macro
    210. 3.210. receiver_trait
    211. 3.211. refcell_take
    212. 3.212. restricted_std
    213. 3.213. result_cloned
    214. 3.214. result_contains_err
    215. 3.215. result_copied
    216. 3.216. result_flattening
    217. 3.217. rt
    218. 3.218. seek_convenience
    219. 3.219. set_ptr_value
    220. 3.220. sgx_platform
    221. 3.221. shrink_to
    222. 3.222. slice_as_chunks
    223. 3.223. slice_concat_ext
    224. 3.224. slice_concat_trait
    225. 3.225. slice_fill
    226. 3.226. slice_fill_with
    227. 3.227. slice_index_methods
    228. 3.228. slice_internals
    229. 3.229. slice_iter_mut_as_slice
    230. 3.230. slice_partition_at_index
    231. 3.231. slice_partition_dedup
    232. 3.232. slice_ptr_get
    233. 3.233. slice_ptr_len
    234. 3.234. slice_split_at_unchecked
    235. 3.235. slice_strip
    236. 3.236. sort_internals
    237. 3.237. split_inclusive
    238. 3.238. std_internals
    239. 3.239. stdsimd
    240. 3.240. step_trait
    241. 3.241. step_trait_ext
    242. 3.242. str_internals
    243. 3.243. str_split_as_str
    244. 3.244. str_split_inclusive_as_str
    245. 3.245. str_split_once
    246. 3.246. string_drain_as_str
    247. 3.247. termination_trait_lib
    248. 3.248. test
    249. 3.249. thread_id_value
    250. 3.250. thread_local_internals
    251. 3.251. thread_spawn_unchecked
    252. 3.252. toowned_clone_into
    253. 3.253. total_cmp
    254. 3.254. trace_macros
    255. 3.255. trusted_len
    256. 3.256. trusted_random_access
    257. 3.257. try_find
    258. 3.258. try_reserve
    259. 3.259. try_trait
    260. 3.260. type_name_of_val
    261. 3.261. unchecked_math
    262. 3.262. unicode_internals
    263. 3.263. unix_socket_peek
    264. 3.264. unsafe_cell_get_mut
    265. 3.265. unsafe_cell_raw_get
    266. 3.266. unsigned_abs
    267. 3.267. unsize
    268. 3.268. unwrap_infallible
    269. 3.269. update_panic_count
    270. 3.270. variant_count
    271. 3.271. vec_into_raw_parts
    272. 3.272. vec_remove_item
    273. 3.273. vec_spare_capacity
    274. 3.274. vecdeque_binary_search
    275. 3.275. wake_trait
    276. 3.276. wasi_ext
    277. 3.277. windows_by_handle
    278. 3.278. windows_c
    279. 3.279. windows_file_type_ext
    280. 3.280. windows_handle
    281. 3.281. windows_net
    282. 3.282. windows_stdio
    283. 3.283. with_options
    284. 3.284. wrapping_int_impl
    285. 3.285. wrapping_next_power_of_two
    286. 3.286. write_all_vectored

The Rust Unstable Book

Library Features