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