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(array_windows)]
93#![feature(ascii_char)]
94#![feature(assert_matches)]
95#![feature(async_fn_traits)]
96#![feature(async_iterator)]
97#![feature(bstr)]
98#![feature(bstr_internals)]
99#![feature(cast_maybe_uninit)]
100#![feature(cell_get_cloned)]
101#![feature(char_internals)]
102#![feature(char_max_len)]
103#![feature(clone_to_uninit)]
104#![feature(coerce_unsized)]
105#![feature(const_convert)]
106#![feature(const_default)]
107#![feature(const_eval_select)]
108#![feature(const_heap)]
109#![feature(copied_into_inner)]
110#![feature(core_intrinsics)]
111#![feature(deprecated_suggestion)]
112#![feature(deref_pure_trait)]
113#![feature(dispatch_from_dyn)]
114#![feature(ergonomic_clones)]
115#![feature(error_generic_member_access)]
116#![feature(exact_size_is_empty)]
117#![feature(extend_one)]
118#![feature(extend_one_unchecked)]
119#![feature(fmt_internals)]
120#![feature(fn_traits)]
121#![feature(formatting_options)]
122#![feature(generic_atomic)]
123#![feature(hasher_prefixfree_extras)]
124#![feature(inplace_iteration)]
125#![feature(iter_advance_by)]
126#![feature(iter_next_chunk)]
127#![feature(layout_for_ptr)]
128#![feature(legacy_receiver_trait)]
129#![feature(local_waker)]
130#![feature(maybe_uninit_slice)]
131#![feature(maybe_uninit_uninit_array_transpose)]
132#![feature(panic_internals)]
133#![feature(pattern)]
134#![feature(pin_coerce_unsized_trait)]
135#![feature(ptr_alignment_type)]
136#![feature(ptr_internals)]
137#![feature(ptr_metadata)]
138#![feature(rev_into_inner)]
139#![feature(set_ptr_value)]
140#![feature(sized_type_properties)]
141#![feature(slice_from_ptr_range)]
142#![feature(slice_index_methods)]
143#![feature(slice_iter_mut_as_mut_slice)]
144#![feature(slice_ptr_get)]
145#![feature(slice_range)]
146#![feature(std_internals)]
147#![feature(str_internals)]
148#![feature(temporary_niche_types)]
149#![feature(trusted_fused)]
150#![feature(trusted_len)]
151#![feature(trusted_random_access)]
152#![feature(try_blocks)]
153#![feature(try_trait_v2)]
154#![feature(try_trait_v2_residual)]
155#![feature(try_with_capacity)]
156#![feature(tuple_trait)]
157#![feature(ub_checks)]
158#![feature(unicode_internals)]
159#![feature(unsize)]
160#![feature(unwrap_infallible)]
161#![feature(wtf8_internals)]
162#![feature(allocator_internals)]
167#![feature(allow_internal_unstable)]
168#![feature(cfg_sanitize)]
169#![feature(const_precise_live_drops)]
170#![feature(const_trait_impl)]
171#![feature(coroutine_trait)]
172#![feature(decl_macro)]
173#![feature(dropck_eyepatch)]
174#![feature(fundamental)]
175#![feature(hashmap_internals)]
176#![feature(intrinsics)]
177#![feature(lang_items)]
178#![feature(min_specialization)]
179#![feature(multiple_supertrait_upcastable)]
180#![feature(negative_impls)]
181#![feature(never_type)]
182#![feature(optimize_attribute)]
183#![feature(rustc_allow_const_fn_unstable)]
184#![feature(rustc_attrs)]
185#![feature(slice_internals)]
186#![feature(staged_api)]
187#![feature(stmt_expr_attributes)]
188#![feature(strict_provenance_lints)]
189#![feature(unboxed_closures)]
190#![feature(unsized_fn_params)]
191#![feature(with_negative_coherence)]
192#![rustc_preserve_ub_checks]
193#![feature(doc_cfg)]
197#![feature(intra_doc_pointers)]
202
203#[macro_use]
205mod macros;
206
207mod raw_vec;
208
209pub mod alloc;
211
212pub mod borrow;
218pub mod boxed;
219#[unstable(feature = "bstr", issue = "134915")]
220pub mod bstr;
221pub mod collections;
222#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
223pub mod ffi;
224pub mod fmt;
225#[cfg(not(no_rc))]
226pub mod rc;
227pub mod slice;
228pub mod str;
229pub mod string;
230#[cfg(all(not(no_rc), not(no_sync), target_has_atomic = "ptr"))]
231pub mod sync;
232#[cfg(all(not(no_global_oom_handling), not(no_rc), not(no_sync)))]
233pub mod task;
234pub mod vec;
235#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
236pub mod wtf8;
237
238#[doc(hidden)]
239#[unstable(feature = "liballoc_internals", issue = "none", reason = "implementation detail")]
240pub mod __export {
241 pub use core::format_args;
242 pub use core::hint::must_use;
243}