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