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

The Rust Unstable Book

source-based-code-coverage

See compiler flag -Z instrument-coverage.