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