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#![deny(lossy_provenance_casts)]
77#![warn(deprecated_in_future)]
78#![warn(missing_debug_implementations)]
79#![warn(missing_docs)]
80#![allow(explicit_outlives_requirements)]
81#![warn(multiple_supertrait_upcastable)]
82#![allow(internal_features)]
83#![allow(rustdoc::redundant_explicit_links)]
84#![warn(rustdoc::unescaped_backticks)]
85#![deny(ffi_unwind_calls)]
86#![warn(unreachable_pub)]
87#![feature(allocator_api)]
94#![feature(array_into_iter_constructors)]
95#![feature(ascii_char)]
96#![feature(async_fn_traits)]
97#![feature(async_iterator)]
98#![feature(bstr)]
99#![feature(bstr_internals)]
100#![feature(case_ignorable)]
101#![feature(cast_maybe_uninit)]
102#![feature(cell_get_cloned)]
103#![feature(char_internals)]
104#![feature(clone_to_uninit)]
105#![feature(coerce_unsized)]
106#![feature(const_clone)]
107#![feature(const_cmp)]
108#![feature(const_convert)]
109#![feature(const_default)]
110#![feature(const_destruct)]
111#![feature(const_eval_select)]
112#![feature(const_heap)]
113#![feature(const_index)]
114#![feature(const_option_ops)]
115#![feature(const_result_trait_fn)]
116#![feature(const_try)]
117#![feature(copied_into_inner)]
118#![feature(core_intrinsics)]
119#![feature(deprecated_suggestion)]
120#![feature(deref_pure_trait)]
121#![feature(diagnostic_on_move)]
122#![feature(dispatch_from_dyn)]
123#![feature(ergonomic_clones)]
124#![feature(error_generic_member_access)]
125#![feature(exact_size_is_empty)]
126#![feature(extend_one)]
127#![feature(extend_one_unchecked)]
128#![feature(fmt_arguments_from_str)]
129#![feature(fmt_internals)]
130#![feature(fn_traits)]
131#![feature(formatting_options)]
132#![feature(freeze)]
133#![feature(generic_atomic)]
134#![feature(hasher_prefixfree_extras)]
135#![feature(inplace_iteration)]
136#![feature(iter_advance_by)]
137#![feature(iter_next_chunk)]
138#![feature(layout_for_ptr)]
139#![feature(legacy_receiver_trait)]
140#![feature(likely_unlikely)]
141#![feature(local_waker)]
142#![feature(maybe_uninit_uninit_array_transpose)]
143#![feature(panic_internals)]
144#![feature(pattern)]
145#![feature(pin_coerce_unsized_trait)]
146#![feature(ptr_alignment_type)]
147#![feature(ptr_cast_slice)]
148#![feature(ptr_internals)]
149#![feature(ptr_metadata)]
150#![feature(rev_into_inner)]
151#![feature(set_ptr_value)]
152#![feature(share_trait)]
153#![feature(sized_type_properties)]
154#![feature(slice_from_ptr_range)]
155#![feature(slice_index_methods)]
156#![feature(slice_iter_mut_as_mut_slice)]
157#![feature(slice_ptr_get)]
158#![feature(slice_range)]
159#![feature(std_internals)]
160#![feature(temporary_niche_types)]
161#![feature(titlecase)]
162#![feature(transmutability)]
163#![feature(trivial_clone)]
164#![feature(trusted_fused)]
165#![feature(trusted_len)]
166#![feature(trusted_random_access)]
167#![feature(try_blocks)]
168#![feature(try_trait_v2)]
169#![feature(try_trait_v2_residual)]
170#![feature(try_with_capacity)]
171#![feature(tuple_trait)]
172#![feature(ub_checks)]
173#![feature(unicode_internals)]
174#![feature(unsize)]
175#![feature(unwrap_infallible)]
176#![feature(wtf8_internals)]
177#![feature(allocator_internals)]
182#![feature(allow_internal_unstable)]
183#![feature(cfg_sanitize)]
184#![feature(const_closures)]
185#![feature(const_precise_live_drops)]
186#![feature(const_trait_impl)]
187#![feature(coroutine_trait)]
188#![feature(decl_macro)]
189#![feature(dropck_eyepatch)]
190#![feature(fundamental)]
191#![feature(intrinsics)]
192#![feature(lang_items)]
193#![feature(min_specialization)]
194#![feature(multiple_supertrait_upcastable)]
195#![feature(negative_impls)]
196#![feature(never_type)]
197#![feature(optimize_attribute)]
198#![feature(rustc_attrs)]
199#![feature(slice_internals)]
200#![feature(staged_api)]
201#![feature(stmt_expr_attributes)]
202#![feature(strict_provenance_lints)]
203#![feature(unboxed_closures)]
204#![feature(unsized_fn_params)]
205#![feature(with_negative_coherence)]
206#![rustc_preserve_ub_checks]
207#![feature(doc_cfg)]
211#![feature(intra_doc_pointers)]
216
217#[macro_use]
219mod macros;
220
221mod raw_vec;
222
223pub mod alloc;
225
226pub mod borrow;
232pub mod boxed;
233#[unstable(feature = "bstr", issue = "134915")]
234pub mod bstr;
235pub mod collections;
236#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
237pub mod ffi;
238pub mod fmt;
239pub mod intrinsics;
240#[cfg(not(no_rc))]
241pub mod rc;
242pub mod slice;
243pub mod str;
244pub mod string;
245#[cfg(all(not(no_rc), not(no_sync), target_has_atomic = "ptr"))]
246pub mod sync;
247#[cfg(all(not(no_global_oom_handling), not(no_rc), not(no_sync)))]
248pub mod task;
249pub mod vec;
250#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
251pub mod wtf8;
252
253#[doc(hidden)]
254#[unstable(feature = "liballoc_internals", issue = "none", reason = "implementation detail")]
255pub mod __export {
256 pub use core::format_args;
257 pub use core::hint::must_use;
258}