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(clone_to_uninit)]
103#![feature(coerce_unsized)]
104#![feature(const_convert)]
105#![feature(const_default)]
106#![feature(const_eval_select)]
107#![feature(const_heap)]
108#![feature(copied_into_inner)]
109#![feature(core_intrinsics)]
110#![feature(deprecated_suggestion)]
111#![feature(deref_pure_trait)]
112#![feature(dispatch_from_dyn)]
113#![feature(ergonomic_clones)]
114#![feature(error_generic_member_access)]
115#![feature(exact_size_is_empty)]
116#![feature(extend_one)]
117#![feature(extend_one_unchecked)]
118#![feature(fmt_arguments_from_str)]
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(transmutability)]
150#![feature(trivial_clone)]
151#![feature(trusted_fused)]
152#![feature(trusted_len)]
153#![feature(trusted_random_access)]
154#![feature(try_blocks)]
155#![feature(try_trait_v2)]
156#![feature(try_trait_v2_residual)]
157#![feature(try_with_capacity)]
158#![feature(tuple_trait)]
159#![feature(ub_checks)]
160#![feature(unicode_internals)]
161#![feature(unsize)]
162#![feature(unwrap_infallible)]
163#![feature(wtf8_internals)]
164#![feature(allocator_internals)]
169#![feature(allow_internal_unstable)]
170#![feature(cfg_sanitize)]
171#![feature(const_precise_live_drops)]
172#![feature(const_trait_impl)]
173#![feature(coroutine_trait)]
174#![feature(decl_macro)]
175#![feature(dropck_eyepatch)]
176#![feature(fundamental)]
177#![feature(hashmap_internals)]
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}