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(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_internals)]
119#![feature(fn_traits)]
120#![feature(formatting_options)]
121#![feature(generic_atomic)]
122#![feature(hasher_prefixfree_extras)]
123#![feature(inplace_iteration)]
124#![feature(iter_advance_by)]
125#![feature(iter_next_chunk)]
126#![feature(layout_for_ptr)]
127#![feature(legacy_receiver_trait)]
128#![feature(local_waker)]
129#![feature(maybe_uninit_slice)]
130#![feature(maybe_uninit_uninit_array_transpose)]
131#![feature(panic_internals)]
132#![feature(pattern)]
133#![feature(pin_coerce_unsized_trait)]
134#![feature(ptr_alignment_type)]
135#![feature(ptr_internals)]
136#![feature(ptr_metadata)]
137#![feature(set_ptr_value)]
138#![feature(sized_type_properties)]
139#![feature(slice_from_ptr_range)]
140#![feature(slice_index_methods)]
141#![feature(slice_iter_mut_as_mut_slice)]
142#![feature(slice_ptr_get)]
143#![feature(slice_range)]
144#![feature(std_internals)]
145#![feature(str_internals)]
146#![feature(temporary_niche_types)]
147#![feature(trusted_fused)]
148#![feature(trusted_len)]
149#![feature(trusted_random_access)]
150#![feature(try_trait_v2)]
151#![feature(try_with_capacity)]
152#![feature(tuple_trait)]
153#![feature(ub_checks)]
154#![feature(unicode_internals)]
155#![feature(unsize)]
156#![feature(unwrap_infallible)]
157#![feature(wtf8_internals)]
158#![feature(allocator_internals)]
163#![feature(allow_internal_unstable)]
164#![feature(cfg_sanitize)]
165#![feature(const_precise_live_drops)]
166#![feature(const_trait_impl)]
167#![feature(coroutine_trait)]
168#![feature(decl_macro)]
169#![feature(dropck_eyepatch)]
170#![feature(fundamental)]
171#![feature(hashmap_internals)]
172#![feature(intrinsics)]
173#![feature(lang_items)]
174#![feature(min_specialization)]
175#![feature(multiple_supertrait_upcastable)]
176#![feature(negative_impls)]
177#![feature(never_type)]
178#![feature(optimize_attribute)]
179#![feature(rustc_allow_const_fn_unstable)]
180#![feature(rustc_attrs)]
181#![feature(slice_internals)]
182#![feature(staged_api)]
183#![feature(stmt_expr_attributes)]
184#![feature(strict_provenance_lints)]
185#![feature(unboxed_closures)]
186#![feature(unsized_fn_params)]
187#![feature(with_negative_coherence)]
188#![rustc_preserve_ub_checks]
189#![feature(doc_cfg)]
193#![feature(intra_doc_pointers)]
198
199#[macro_use]
201mod macros;
202
203mod raw_vec;
204
205pub mod alloc;
207
208pub mod borrow;
214pub mod boxed;
215#[unstable(feature = "bstr", issue = "134915")]
216pub mod bstr;
217pub mod collections;
218#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
219pub mod ffi;
220pub mod fmt;
221#[cfg(not(no_rc))]
222pub mod rc;
223pub mod slice;
224pub mod str;
225pub mod string;
226#[cfg(all(not(no_rc), not(no_sync), target_has_atomic = "ptr"))]
227pub mod sync;
228#[cfg(all(not(no_global_oom_handling), not(no_rc), not(no_sync)))]
229pub mod task;
230pub mod vec;
231#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
232pub mod wtf8;
233
234#[doc(hidden)]
235#[unstable(feature = "liballoc_internals", issue = "none", reason = "implementation detail")]
236pub mod __export {
237 pub use core::format_args;
238 pub use core::hint::must_use;
239}