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