1. The Unstable Book
  2. Compiler environment variables
    1. COLORTERM
    2. QNX_TARGET
    3. RUSTC_BLESS
    4. RUSTC_BOOTSTRAP
    5. RUSTC_BREAK_ON_ICE
    6. RUSTC_CTFE_BACKTRACE
    7. RUSTC_FORCE_RUSTC_VERSION
    8. RUSTC_GRAPHVIZ_FONT
    9. RUSTC_ICE
    10. RUSTC_LOG
    11. RUSTC_OVERRIDE_VERSION_STRING
    12. RUSTC_WINDOWS_RC
    13. RUST_BACKTRACE
    14. RUST_DEP_GRAPH
    15. RUST_DEP_GRAPH_FILTER
    16. RUST_FORBID_DEP_GRAPH_EDGE
    17. RUST_MIN_STACK
    18. RUST_TARGET_PATH
    19. SDKROOT
    20. TERM
    21. UNSTABLE_RUSTDOC_TEST_LINE
    22. UNSTABLE_RUSTDOC_TEST_PATH
  3. Compiler flags
    1. allow_features
    2. annotate_moves
    3. autodiff
    4. branch_protection
    5. cache_proc_macros
    6. cf_protection
    7. codegen_backend
    8. codegen_options
    9. codegen_source_order
    10. control_flow_guard
    11. coverage_options
    12. crate_attr
    13. debug_info_for_profiling
    14. debug_info_type_line_numbers
    15. default_visibility
    16. direct_access_external_data
    17. dump_mono_stats
    18. dump_mono_stats_format
    19. dylib_lto
    20. eagerly_emit_delayed_bugs
    21. embed_metadata
    22. embed_source
    23. emit_stack_sizes
    24. emscripten_wasm_eh
    25. env_set
    26. export_executable_symbols
    27. extern_options
    28. external_clangrt
    29. fixed_x18
    30. fmt_debug
    31. function_return
    32. hint_mostly_unused
    33. indirect_branch_cs_prefix
    34. instrument_xray
    35. large_data_threshold
    36. link_native_libraries
    37. lint_llvm_ir
    38. llvm_module_flag
    39. location_detail
    40. macro_stats
    41. min_function_alignment
    42. move_size_limit
    43. no_parallel_llvm
    44. no_steal_thir
    45. no_unique_section_names
    46. offload
    47. on_broken_pipe
    48. patchable_function_entry
    49. print_check_cfg
    50. print_crate_root_lint_levels
    51. print_supported_crate_types
    52. profile_sample_use
    53. randomize_layout
    54. reg_struct_return
    55. regparm
    56. remap_cwd_prefix
    57. report_time
    58. sanitizer
    59. self_profile
    60. self_profile_events
    61. shell_argfiles
    62. small_data_threshold
    63. split_dwarf_out_dir
    64. src_hash_algorithm
    65. temps_dir
    66. terminal_urls
    67. tiny_const_eval_limit
    68. tls_model
    69. track_diagnostics
    70. treat_err_as_bug
    71. ub_checks
    72. unsound_mir_opts
    73. verbose_asm
    74. virtual_function_elimination
    75. wasm_c_abi
  4. Language features
    1. aarch64_unstable_target_feature
    2. aarch64_ver_target_feature
    3. abi_avr_interrupt
    4. abi_cmse_nonsecure_call
    5. abi_custom
    6. abi_gpu_kernel
    7. abi_msp430_interrupt
    8. abi_ptx
    9. abi_riscv_interrupt
    10. abi_unadjusted
    11. abi_vectorcall
    12. abi_x86_interrupt
    13. adt_const_params
    14. alloc_error_handler
    15. allocator_internals
    16. allow_internal_unsafe
    17. allow_internal_unstable
    18. anonymous_lifetime_in_impl_trait
    19. apx_target_feature
    20. arbitrary_self_types
    21. arbitrary_self_types_pointers
    22. arm_target_feature
    23. asm_experimental_arch
    24. asm_experimental_reg
    25. asm_goto_with_outputs
    26. asm_unwind
    27. associated_type_defaults
    28. async_drop
    29. async_fn_in_dyn_trait
    30. async_fn_track_caller
    31. async_for_loop
    32. async_trait_bounds
    33. auto_traits
    34. avr_target_feature
    35. avx10_target_feature
    36. box_patterns
    37. bpf_target_feature
    38. builtin_syntax
    39. c_variadic
    40. c_variadic_naked_functions
    41. cfg_contract_checks
    42. cfg_emscripten_wasm_eh
    43. cfg_overflow_checks
    44. cfg_relocation_model
    45. cfg_sanitize
    46. cfg_sanitizer_cfi
    47. cfg_target_compact
    48. cfg_target_has_atomic
    49. cfg_target_has_atomic_equal_alignment
    50. cfg_target_has_reliable_f16_f128
    51. cfg_target_thread_local
    52. cfg_ub_checks
    53. cfg_version
    54. cfi_encoding
    55. closure_lifetime_binder
    56. closure_track_caller
    57. cmse_nonsecure_entry
    58. compiler_builtins
    59. const_async_blocks
    60. const_block_items
    61. const_c_variadic
    62. const_closures
    63. const_destruct
    64. const_for
    65. const_precise_live_drops
    66. const_trait_impl
    67. const_try
    68. contracts
    69. contracts_internals
    70. coroutine_clone
    71. coroutines
    72. coverage_attribute
    73. csky_target_feature
    74. custom_inner_attributes
    75. custom_mir
    76. custom_test_frameworks
    77. decl_macro
    78. default_field_values
    79. deprecated_suggestion
    80. deref_patterns
    81. derive_from
    82. diagnostic_on_const
    83. doc_cfg
    84. doc_masked
    85. doc_notable_trait
    86. dropck_eyepatch
    87. effective_target_features
    88. eii_internals
    89. ergonomic_clones
    90. ermsb_target_feature
    91. exhaustive_patterns
    92. explicit_extern_abis
    93. explicit_tail_calls
    94. export_stable
    95. extern_item_impls
    96. extern_types
    97. f128
    98. f16
    99. ffi_const
    100. ffi_pure
    101. final_associated_functions
    102. fmt_debug
    103. fn_align
    104. fn_delegation
    105. freeze_impls
    106. frontmatter
    107. fundamental
    108. gen_blocks
    109. generic_assert
    110. generic_const_exprs
    111. generic_const_items
    112. generic_const_parameter_types
    113. generic_pattern_types
    114. global_registration
    115. guard_patterns
    116. half_open_range_patterns_in_slices
    117. hexagon_target_feature
    118. impl_trait_in_assoc_type
    119. impl_trait_in_bindings
    120. impl_trait_in_fn_trait_return
    121. import_trait_associated_functions
    122. inherent_associated_types
    123. intra_doc_pointers
    124. intrinsics
    125. lahfsahf_target_feature
    126. lang_items
    127. large_assignments
    128. lazy_type_alias
    129. link_arg_attribute
    130. link_cfg
    131. link_llvm_intrinsics
    132. linkage
    133. loongarch_target_feature
    134. loop_match
    135. m68k_target_feature
    136. macro_attr
    137. macro_derive
    138. macro_metavar_expr
    139. macro_metavar_expr_concat
    140. marker_trait_attr
    141. mgca_type_const_syntax
    142. min_generic_const_args
    143. min_specialization
    144. mips_target_feature
    145. more_maybe_bounds
    146. more_qualified_paths
    147. movrs_target_feature
    148. multiple_supertrait_upcastable
    149. must_not_suspend
    150. mut_ref
    151. naked_functions_rustic_abi
    152. naked_functions_target_feature
    153. native_link_modifiers_as_needed
    154. needs_panic_runtime
    155. negative_bounds
    156. negative_impls
    157. never_patterns
    158. never_type
    159. new_range
    160. no_core
    161. non_exhaustive_omitted_patterns_lint
    162. non_lifetime_binders
    163. nvptx_target_feature
    164. offset_of_enum
    165. offset_of_slice
    166. opaque_generic_const_args
    167. optimize_attribute
    168. panic_runtime
    169. patchable_function_entry
    170. pattern_complexity_limit
    171. pattern_types
    172. pin_ergonomics
    173. postfix_match
    174. powerpc_target_feature
    175. prelude_import
    176. prfchw_target_feature
    177. proc_macro_hygiene
    178. profiler_runtime
    179. raw_dylib_elf
    180. reborrow
    181. ref_pat_eat_one_layer_2024
    182. ref_pat_eat_one_layer_2024_structural
    183. register_tool
    184. repr_simd
    185. return_type_notation
    186. riscv_target_feature
    187. rtm_target_feature
    188. rust_cold_cc
    189. rust_preserve_none_cc
    190. rustc_attrs
    191. rustc_private
    192. rustdoc_internals
    193. rustdoc_missing_doc_code_examples
    194. s390x_target_feature
    195. sanitize
    196. simd_ffi
    197. sized_hierarchy
    198. sparc_target_feature
    199. specialization
    200. staged_api
    201. static_align
    202. stmt_expr_attributes
    203. strict_provenance_lints
    204. structural_match
    205. super_let
    206. supertrait_item_shadowing
    207. target_feature_inline_always
    208. test_unstable_lint
    209. thread_local
    210. trait_alias
    211. transmute_generic_consts
    212. transparent_unions
    213. trivial_bounds
    214. try_blocks
    215. try_blocks_heterogeneous
    216. type_alias_impl_trait
    217. type_changing_struct_update
    218. unboxed_closures
    219. unqualified_local_imports
    220. unsafe_binders
    221. unsafe_fields
    222. unsized_const_params
    223. unsized_fn_params
    224. used_with_arg
    225. wasm_target_feature
    226. where_clause_attrs
    227. with_negative_coherence
    228. x86_amx_intrinsics
    229. x87_target_feature
    230. xop_target_feature
    231. yeet_expr
    232. yield_expr
  5. Library Features
    1. abort_unwind
    2. acceptfilter
    3. addr_parse_ascii
    4. align_to_uninit_mut
    5. alloc_error_hook
    6. alloc_internals
    7. alloc_slice_into_array
    8. allocator_api
    9. alloctests
    10. arc_is_unique
    11. array_into_iter_constructors
    12. array_ptr_get
    13. array_try_from_fn
    14. array_try_map
    15. ascii_char
    16. ascii_char_variants
    17. assert_matches
    18. async_fn_traits
    19. async_gen_internals
    20. async_iter_from_iter
    21. async_iterator
    22. atomic_from_mut
    23. atomic_internals
    24. atomic_ptr_null
    25. autodiff
    26. backtrace_frames
    27. bikeshed_guaranteed_no_drop
    28. binary_heap_drain_sorted
    29. binary_heap_from_raw_vec
    30. binary_heap_into_iter_sorted
    31. binary_heap_peek_mut_refresh
    32. binary_heap_pop_if
    33. bool_to_result
    34. bound_as_ref
    35. bound_copied
    36. box_as_ptr
    37. box_into_boxed_slice
    38. box_into_inner
    39. box_take
    40. box_vec_non_null
    41. breakpoint
    42. bstr
    43. bstr_internals
    44. btree_cursors
    45. btree_merge
    46. btree_set_entry
    47. btreemap_alloc
    48. buf_read_has_data_left
    49. bufreader_peek
    50. c_size_t
    51. c_void_variant
    52. can_vector
    53. cast_maybe_uninit
    54. cell_get_cloned
    55. cell_leak
    56. cfg_accessible
    57. cfg_eval
    58. char_internals
    59. char_max_len
    60. clamp_magnitude
    61. clone_from_ref
    62. clone_to_uninit
    63. cmp_minmax
    64. coerce_pointee_validated
    65. coerce_unsized
    66. command_resolved_envs
    67. concat_bytes
    68. const_alloc_error
    69. const_array
    70. const_bool
    71. const_btree_len
    72. const_carrying_mul_add
    73. const_cell_traits
    74. const_clone
    75. const_cmp
    76. const_control_flow
    77. const_convert
    78. const_default
    79. const_drop_guard
    80. const_drop_in_place
    81. const_eval_select
    82. const_format_args
    83. const_heap
    84. const_index
    85. const_iter
    86. const_manually_drop_take
    87. const_never_short_circuit
    88. const_ops
    89. const_option_ops
    90. const_range
    91. const_range_bounds
    92. const_raw_ptr_comparison
    93. const_ref_cell
    94. const_result_trait_fn
    95. const_result_unwrap_unchecked
    96. const_select_unpredictable
    97. const_slice_from_mut_ptr_range
    98. const_slice_from_ptr_range
    99. const_slice_make_iter
    100. const_split_off_first_last
    101. const_swap_with_slice
    102. const_try_residual
    103. const_type_name
    104. const_unsigned_bigint_helpers
    105. container_error_extra
    106. context_ext
    107. control_flow_into_value
    108. control_flow_ok
    109. convert_float_to_int
    110. copied_into_inner
    111. core_float_math
    112. core_intrinsics
    113. core_intrinsics_fallbacks
    114. core_io_borrowed_buf
    115. core_private_bignum
    116. core_private_diy_float
    117. coroutine_trait
    118. cow_is_borrowed
    119. cstr_bytes
    120. cstr_display
    121. cstr_internals
    122. current_thread_id
    123. cursor_split
    124. darwin_objc
    125. deadline_api
    126. debug_closure_helpers
    127. dec2flt
    128. deque_extend_front
    129. deref_pure_trait
    130. derive_clone_copy_internals
    131. derive_coerce_pointee
    132. derive_const
    133. derive_eq_internals
    134. dir_entry_ext2
    135. dirfd
    136. dirhandle
    137. discriminant_kind
    138. disjoint_bitor
    139. dispatch_from_dyn
    140. downcast_unchecked
    141. drain_keep_rest
    142. drop_guard
    143. duration_constants
    144. duration_constructors
    145. duration_integer_division
    146. duration_millis_float
    147. duration_units
    148. edition_panic
    149. error_generic_member_access
    150. error_iter
    151. error_reporter
    152. error_type_id
    153. exact_bitshifts
    154. exact_div
    155. exact_size_is_empty
    156. exclusive_wrapper
    157. exit_status_error
    158. exitcode_exit_method
    159. extend_one
    160. extend_one_unchecked
    161. fd
    162. file_buffered
    163. float_algebraic
    164. float_bits_const
    165. float_erf
    166. float_exact_integer_constants
    167. float_gamma
    168. float_minimum_maximum
    169. flt2dec
    170. fmt_arguments_from_str
    171. fmt_helpers_for_derive
    172. fmt_internals
    173. fn_ptr_trait
    174. fn_traits
    175. forget_unsized
    176. format_args_nl
    177. formatting_options
    178. freeze
    179. fs_set_times
    180. funnel_shifts
    181. future_join
    182. gen_future
    183. generic_assert_internals
    184. generic_atomic
    185. get_disjoint_mut_helpers
    186. get_mut_unchecked
    187. gethostname
    188. gpu_intrinsics
    189. hash_set_entry
    190. hasher_prefixfree_extras
    191. hashmap_internals
    192. hint_must_use
    193. hint_prefetch
    194. inplace_iteration
    195. int_format_into
    196. int_from_ascii
    197. int_lowest_highest_one
    198. int_roundings
    199. integer_atomics
    200. internal_impls_macro
    201. internal_output_capture
    202. io_const_error
    203. io_const_error_internals
    204. io_error_inprogress
    205. io_error_more
    206. io_error_uncategorized
    207. io_slice_as_bytes
    208. ip
    209. ip_as_octets
    210. is_ascii_octdigit
    211. is_loongarch_feature_detected
    212. is_riscv_feature_detected
    213. isolate_most_least_significant_one
    214. iter_advance_by
    215. iter_array_chunks
    216. iter_collect_into
    217. iter_from_coroutine
    218. iter_intersperse
    219. iter_is_partitioned
    220. iter_macro
    221. iter_map_windows
    222. iter_next_chunk
    223. iter_order_by
    224. iter_partition_in_place
    225. iterator_try_collect
    226. iterator_try_reduce
    227. junction_point
    228. layout_for_ptr
    229. lazy_cell_into_inner
    230. legacy_receiver_trait
    231. liballoc_internals
    232. libstd_sys_internals
    233. likely_unlikely
    234. linked_list_cursors
    235. linked_list_remove
    236. linked_list_retain
    237. linux_pidfd
    238. local_key_cell_update
    239. local_waker
    240. lock_value_accessors
    241. log_syntax
    242. map_try_insert
    243. mapped_lock_guards
    244. maybe_dangling
    245. maybe_uninit_array_assume_init
    246. maybe_uninit_as_bytes
    247. maybe_uninit_fill
    248. maybe_uninit_uninit_array_transpose
    249. mem_conjure_zst
    250. mem_copy_fn
    251. more_float_constants
    252. motor_ext
    253. mpmc_channel
    254. mutex_data_ptr
    255. new_range_api
    256. new_range_remainder
    257. next_index
    258. nonpoison_condvar
    259. nonpoison_mutex
    260. nonpoison_rwlock
    261. nonzero_bitwise
    262. nonzero_from_mut
    263. nonzero_from_str_radix
    264. nonzero_internals
    265. nonzero_ops
    266. normalize_lexically
    267. numfmt
    268. objc_class_variant
    269. objc_selector_variant
    270. once_cell_get_mut
    271. once_cell_try
    272. once_cell_try_insert
    273. one_sided_range
    274. oneshot_channel
    275. option_array_transpose
    276. option_get_or_try_insert_with
    277. option_into_flat_iter
    278. option_reduce
    279. option_reference_flattening
    280. option_zip
    281. os_str_slice
    282. os_string_truncate
    283. panic_abort
    284. panic_always_abort
    285. panic_backtrace_config
    286. panic_can_unwind
    287. panic_internals
    288. panic_unwind
    289. panic_update_hook
    290. partial_ord_chaining_methods
    291. path_is_empty
    292. path_trailing_sep
    293. pattern
    294. pattern_type_macro
    295. pattern_type_range_trait
    296. peer_credentials_unix_socket
    297. phantom_variance_markers
    298. pin_coerce_unsized_trait
    299. pin_derefmut_internals
    300. pointer_is_aligned_to
    301. pointer_try_cast_aligned
    302. portable_simd
    303. prelude_future
    304. prelude_next
    305. print_internals
    306. proc_macro_def_site
    307. proc_macro_diagnostic
    308. proc_macro_expand
    309. proc_macro_internals
    310. proc_macro_quote
    311. proc_macro_span
    312. proc_macro_totokens
    313. proc_macro_tracked_env
    314. proc_macro_tracked_path
    315. proc_macro_value
    316. process_chroot
    317. process_exitcode_internals
    318. process_internals
    319. process_setsid
    320. profiler_runtime_lib
    321. profiling_marker_api
    322. ptr_alignment_type
    323. ptr_as_uninit
    324. ptr_cast_array
    325. ptr_cast_slice
    326. ptr_internals
    327. ptr_mask
    328. ptr_metadata
    329. pub_crate_should_not_need_unstable_attr
    330. random
    331. range_bounds_is_empty
    332. range_into_bounds
    333. raw_os_error_ty
    334. raw_slice_split
    335. raw_vec_internals
    336. read_array
    337. read_buf
    338. read_buf_at
    339. reentrant_lock
    340. reentrant_lock_data_ptr
    341. refcell_try_map
    342. restricted_std
    343. result_option_map_or_default
    344. rev_into_inner
    345. rt
    346. rwlock_data_ptr
    347. sealed
    348. seek_io_take_position
    349. seek_stream_len
    350. set_permissions_nofollow
    351. set_ptr_value
    352. setgroups
    353. sgx_platform
    354. signed_bigint_helpers
    355. sized_type_properties
    356. slice_concat_ext
    357. slice_concat_trait
    358. slice_from_ptr_range
    359. slice_index_methods
    360. slice_internals
    361. slice_iter_mut_as_mut_slice
    362. slice_partial_sort_unstable
    363. slice_partition_dedup
    364. slice_pattern
    365. slice_ptr_get
    366. slice_range
    367. slice_shift
    368. slice_split_once
    369. slice_swap_unchecked
    370. sliceindex_wrappers
    371. smart_pointer_try_map
    372. solid_ext
    373. sort_floats
    374. split_array
    375. split_as_slice
    376. std_internals
    377. stdarch_aarch64_feature_detection
    378. stdarch_arm_feature_detection
    379. stdarch_internal
    380. stdarch_loongarch_feature_detection
    381. stdarch_mips_feature_detection
    382. stdarch_powerpc_feature_detection
    383. stdarch_riscv_feature_detection
    384. stdio_fd_consts
    385. stdio_makes_pipe
    386. stdio_swap
    387. step_trait
    388. str_as_str
    389. str_from_raw_parts
    390. str_from_utf16_endian
    391. str_internals
    392. str_lines_remainder
    393. str_split_inclusive_remainder
    394. str_split_remainder
    395. str_split_whitespace_remainder
    396. string_from_utf8_lossy_owned
    397. string_into_chars
    398. string_remove_matches
    399. string_replace_in_place
    400. strip_circumfix
    401. substr_range
    402. sync_nonpoison
    403. sync_poison_mod
    404. sync_unsafe_cell
    405. tcp_deferaccept
    406. tcp_linger
    407. tcplistener_into_incoming
    408. temporary_niche_types
    409. test
    410. thin_box
    411. thread_id_value
    412. thread_local_internals
    413. thread_raw
    414. thread_sleep_until
    415. thread_spawn_hook
    416. time_saturating_systemtime
    417. time_systemtime_limits
    418. trace_macros
    419. transmutability
    420. trim_prefix_suffix
    421. trivial_clone
    422. trusted_fused
    423. trusted_len
    424. trusted_len_next_unchecked
    425. trusted_random_access
    426. trusted_step
    427. try_as_dyn
    428. try_find
    429. try_reserve_kind
    430. try_trait_v2
    431. try_trait_v2_residual
    432. try_trait_v2_yeet
    433. try_with_capacity
    434. tuple_trait
    435. type_ascription
    436. type_info
    437. ub_checks
    438. uefi_std
    439. uint_bit_width
    440. uint_carryless_mul
    441. uint_gather_scatter_bits
    442. unicode_internals
    443. unique_rc_arc
    444. unix_file_vectored_at
    445. unix_mkfifo
    446. unix_send_signal
    447. unix_set_mark
    448. unix_socket_ancillary_data
    449. unix_socket_exclbind
    450. unix_socket_peek
    451. unsafe_cell_access
    452. unsafe_pinned
    453. unsafe_unpin
    454. unsize
    455. unwrap_infallible
    456. update_panic_count
    457. utf16_extra
    458. variant_count
    459. vec_deque_extract_if
    460. vec_deque_iter_as_slices
    461. vec_deque_truncate_front
    462. vec_fallible_shrink
    463. vec_from_fn
    464. vec_into_chunks
    465. vec_peek_mut
    466. vec_push_within_capacity
    467. vec_recycle
    468. vec_split_at_spare
    469. vec_try_remove
    470. waker_fn
    471. waker_from_fn_ptr
    472. wasi_ext
    473. widening_mul
    474. windows_by_handle
    475. windows_c
    476. windows_change_time
    477. windows_freeze_file_times
    478. windows_handle
    479. windows_net
    480. windows_process_exit_code_from
    481. windows_process_extensions_async_pipes
    482. windows_process_extensions_force_quotes
    483. windows_process_extensions_inherit_handles
    484. windows_process_extensions_main_thread_handle
    485. windows_process_extensions_raw_attribute
    486. windows_process_extensions_show_window
    487. windows_process_extensions_startupinfo
    488. windows_stdio
    489. windows_unix_domain_sockets
    490. wrapping_int_impl
    491. wrapping_next_power_of_two
    492. write_all_vectored
    493. wtf8_internals
    494. yeet_desugar_details