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