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_blocks)]
151#![feature(try_trait_v2)]
152#![feature(try_trait_v2_residual)]
153#![feature(try_with_capacity)]
154#![feature(tuple_trait)]
155#![feature(ub_checks)]
156#![feature(unicode_internals)]
157#![feature(unsize)]
158#![feature(unwrap_infallible)]
159#![feature(wtf8_internals)]
160#![feature(allocator_internals)]
165#![feature(allow_internal_unstable)]
166#![feature(cfg_sanitize)]
167#![feature(const_precise_live_drops)]
168#![feature(const_trait_impl)]
169#![feature(coroutine_trait)]
170#![feature(decl_macro)]
171#![feature(dropck_eyepatch)]
172#![feature(fundamental)]
173#![feature(hashmap_internals)]
174#![feature(intrinsics)]
175#![feature(lang_items)]
176#![feature(min_specialization)]
177#![feature(multiple_supertrait_upcastable)]
178#![feature(negative_impls)]
179#![feature(never_type)]
180#![feature(optimize_attribute)]
181#![feature(rustc_allow_const_fn_unstable)]
182#![feature(rustc_attrs)]
183#![feature(slice_internals)]
184#![feature(staged_api)]
185#![feature(stmt_expr_attributes)]
186#![feature(strict_provenance_lints)]
187#![feature(unboxed_closures)]
188#![feature(unsized_fn_params)]
189#![feature(with_negative_coherence)]
190#![rustc_preserve_ub_checks]
191#![feature(doc_cfg)]
195#![feature(intra_doc_pointers)]
200
201#[macro_use]
203mod macros;
204
205mod raw_vec;
206
207pub mod alloc;
209
210pub mod borrow;
216pub mod boxed;
217#[unstable(feature = "bstr", issue = "134915")]
218pub mod bstr;
219pub mod collections;
220#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
221pub mod ffi;
222pub mod fmt;
223#[cfg(not(no_rc))]
224pub mod rc;
225pub mod slice;
226pub mod str;
227pub mod string;
228#[cfg(all(not(no_rc), not(no_sync), target_has_atomic = "ptr"))]
229pub mod sync;
230#[cfg(all(not(no_global_oom_handling), not(no_rc), not(no_sync)))]
231pub mod task;
232pub mod vec;
233#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
234pub mod wtf8;
235
236#[doc(hidden)]
237#[unstable(feature = "liballoc_internals", issue = "none", reason = "implementation detail")]
238pub mod __export {
239 pub use core::format_args;
240 pub use core::hint::must_use;
241}