1#![allow(unused_features)]
60#![allow(incomplete_features)]
61#![allow(unused_attributes)]
62#![stable(feature = "alloc", since = "1.36.0")]
63#![doc(
64 html_playground_url = "https://play.rust-lang.org/",
65 issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
66 test(no_crate_inject, attr(allow(unused_variables, duplicate_features), deny(warnings)))
67)]
68#![doc(auto_cfg(hide(no_global_oom_handling, no_rc, no_sync, target_has_atomic = "ptr")))]
69#![doc(rust_logo)]
70#![feature(rustdoc_internals)]
71#![no_std]
72#![needs_allocator]
73#![deny(unsafe_op_in_unsafe_fn)]
75#![deny(fuzzy_provenance_casts)]
76#![warn(deprecated_in_future)]
77#![warn(missing_debug_implementations)]
78#![warn(missing_docs)]
79#![allow(explicit_outlives_requirements)]
80#![warn(multiple_supertrait_upcastable)]
81#![allow(internal_features)]
82#![allow(rustdoc::redundant_explicit_links)]
83#![warn(rustdoc::unescaped_backticks)]
84#![deny(ffi_unwind_calls)]
85#![warn(unreachable_pub)]
86#![feature(allocator_api)]
90#![feature(array_into_iter_constructors)]
91#![feature(ascii_char)]
92#![feature(async_fn_traits)]
93#![feature(async_iterator)]
94#![feature(bstr)]
95#![feature(bstr_internals)]
96#![feature(case_ignorable)]
97#![feature(cast_maybe_uninit)]
98#![feature(cell_get_cloned)]
99#![feature(char_internals)]
100#![feature(clone_to_uninit)]
101#![feature(coerce_unsized)]
102#![feature(const_clone)]
103#![feature(const_cmp)]
104#![feature(const_convert)]
105#![feature(const_default)]
106#![feature(const_destruct)]
107#![feature(const_eval_select)]
108#![feature(const_heap)]
109#![feature(const_index)]
110#![feature(const_option_ops)]
111#![feature(const_result_trait_fn)]
112#![feature(const_try)]
113#![feature(copied_into_inner)]
114#![feature(core_intrinsics)]
115#![feature(deprecated_suggestion)]
116#![feature(deref_pure_trait)]
117#![feature(diagnostic_on_move)]
118#![feature(dispatch_from_dyn)]
119#![feature(ergonomic_clones)]
120#![feature(error_generic_member_access)]
121#![feature(exact_size_is_empty)]
122#![feature(extend_one)]
123#![feature(extend_one_unchecked)]
124#![feature(fmt_arguments_from_str)]
125#![feature(fmt_internals)]
126#![feature(fn_traits)]
127#![feature(formatting_options)]
128#![feature(freeze)]
129#![feature(generic_atomic)]
130#![feature(hasher_prefixfree_extras)]
131#![feature(inplace_iteration)]
132#![feature(iter_advance_by)]
133#![feature(iter_next_chunk)]
134#![feature(layout_for_ptr)]
135#![feature(legacy_receiver_trait)]
136#![feature(likely_unlikely)]
137#![feature(local_waker)]
138#![feature(maybe_uninit_uninit_array_transpose)]
139#![feature(panic_internals)]
140#![feature(pattern)]
141#![feature(pin_coerce_unsized_trait)]
142#![feature(ptr_alignment_type)]
143#![feature(ptr_internals)]
144#![feature(ptr_metadata)]
145#![feature(rev_into_inner)]
146#![feature(set_ptr_value)]
147#![feature(sized_type_properties)]
148#![feature(slice_from_ptr_range)]
149#![feature(slice_index_methods)]
150#![feature(slice_iter_mut_as_mut_slice)]
151#![feature(slice_ptr_get)]
152#![feature(slice_range)]
153#![feature(std_internals)]
154#![feature(temporary_niche_types)]
155#![feature(titlecase)]
156#![feature(transmutability)]
157#![feature(trivial_clone)]
158#![feature(trusted_fused)]
159#![feature(trusted_len)]
160#![feature(trusted_random_access)]
161#![feature(try_blocks)]
162#![feature(try_trait_v2)]
163#![feature(try_trait_v2_residual)]
164#![feature(tuple_trait)]
165#![feature(ub_checks)]
166#![feature(unicode_internals)]
167#![feature(unsize)]
168#![feature(unwrap_infallible)]
169#![feature(wtf8_internals)]
170#![feature(allocator_internals)]
175#![feature(allow_internal_unstable)]
176#![feature(cfg_sanitize)]
177#![feature(const_closures)]
178#![feature(const_precise_live_drops)]
179#![feature(const_trait_impl)]
180#![feature(coroutine_trait)]
181#![feature(decl_macro)]
182#![feature(dropck_eyepatch)]
183#![feature(fundamental)]
184#![feature(intrinsics)]
185#![feature(lang_items)]
186#![feature(min_specialization)]
187#![feature(multiple_supertrait_upcastable)]
188#![feature(negative_impls)]
189#![feature(never_type)]
190#![feature(optimize_attribute)]
191#![feature(rustc_attrs)]
192#![feature(slice_internals)]
193#![feature(staged_api)]
194#![feature(stmt_expr_attributes)]
195#![feature(strict_provenance_lints)]
196#![feature(unboxed_closures)]
197#![feature(unsized_fn_params)]
198#![feature(with_negative_coherence)]
199#![rustc_preserve_ub_checks]
200#![feature(doc_cfg)]
204#![feature(intra_doc_pointers)]
209
210#[macro_use]
212mod macros;
213
214mod raw_vec;
215
216pub mod alloc;
218
219pub mod borrow;
225pub mod boxed;
226#[unstable(feature = "bstr", issue = "134915")]
227pub mod bstr;
228pub mod collections;
229#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
230pub mod ffi;
231pub mod fmt;
232pub mod intrinsics;
233#[cfg(not(no_rc))]
234pub mod rc;
235pub mod slice;
236pub mod str;
237pub mod string;
238#[cfg(all(not(no_rc), not(no_sync), target_has_atomic = "ptr"))]
239pub mod sync;
240#[cfg(all(not(no_global_oom_handling), not(no_rc), not(no_sync)))]
241pub mod task;
242pub mod vec;
243#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
244pub mod wtf8;
245
246#[doc(hidden)]
247#[unstable(feature = "liballoc_internals", issue = "none", reason = "implementation detail")]
248pub mod __export {
249 pub use core::format_args;
250 pub use core::hint::must_use;
251}