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

The Rust Unstable Book

Library Features