1#![allow(unused_features)]
60#![allow(incomplete_features)]
61#![allow(unused_attributes)]
62#![expect(clippy::partialeq_ne_impl, reason = "we need to implement ne for a lot of alloc types")]
63#![stable(feature = "alloc", since = "1.36.0")]
64#![doc(
65 html_playground_url = "https://play.rust-lang.org/",
66 issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
67 test(no_crate_inject, attr(allow(unused_variables, duplicate_features), deny(warnings)))
68)]
69#![doc(auto_cfg(
70 hide(no_global_oom_handling, no_rc, no_sync),
71 hide(target_has_atomic, values("ptr")),
72))]
73#![doc(rust_logo)]
74#![feature(rustdoc_internals)]
75#![no_std]
76#![needs_allocator]
77#![deny(unsafe_op_in_unsafe_fn)]
79#![deny(implicit_provenance_casts)]
80#![warn(deprecated_in_future)]
81#![warn(missing_debug_implementations)]
82#![warn(missing_docs)]
83#![allow(explicit_outlives_requirements)]
84#![warn(multiple_supertrait_upcastable)]
85#![allow(internal_features)]
86#![allow(rustdoc::redundant_explicit_links)]
87#![warn(rustdoc::unescaped_backticks)]
88#![deny(ffi_unwind_calls)]
89#![warn(unreachable_pub)]
90#![feature(allocator_api)]
94#![feature(array_into_iter_constructors)]
95#![feature(ascii_char)]
96#![feature(async_fn_traits)]
97#![feature(async_iterator)]
98#![feature(borrowed_buf_init)]
99#![feature(bstr)]
100#![feature(bstr_internals)]
101#![feature(can_vector)]
102#![feature(case_ignorable)]
103#![feature(cast_maybe_uninit)]
104#![feature(cell_get_cloned)]
105#![feature(char_internals)]
106#![feature(clone_to_uninit)]
107#![feature(coerce_unsized)]
108#![feature(const_clone)]
109#![feature(const_cmp)]
110#![feature(const_convert)]
111#![feature(const_default)]
112#![feature(const_destruct)]
113#![feature(const_drop_in_place)]
114#![feature(const_eval_select)]
115#![feature(const_heap)]
116#![feature(const_index)]
117#![feature(const_option_ops)]
118#![feature(const_result_trait_fn)]
119#![feature(const_try)]
120#![feature(copied_into_inner)]
121#![feature(core_intrinsics)]
122#![feature(core_io)]
123#![feature(core_io_borrowed_buf)]
124#![feature(core_io_internals)]
125#![feature(cursor_split)]
126#![feature(deprecated_suggestion)]
127#![feature(deref_pure_trait)]
128#![feature(derive_const)]
129#![feature(diagnostic_on_move)]
130#![feature(dispatch_from_dyn)]
131#![feature(drop_guard)]
132#![feature(ergonomic_clones)]
133#![feature(error_generic_member_access)]
134#![feature(exact_size_is_empty)]
135#![feature(extend_one)]
136#![feature(extend_one_unchecked)]
137#![feature(fmt_arguments_from_str)]
138#![feature(fmt_internals)]
139#![feature(fn_traits)]
140#![feature(formatting_options)]
141#![feature(freeze)]
142#![feature(generic_atomic)]
143#![feature(hasher_prefixfree_extras)]
144#![feature(inplace_iteration)]
145#![feature(io_const_error)]
146#![feature(io_const_error_internals)]
147#![feature(io_slice_as_bytes)]
148#![feature(iter_advance_by)]
149#![feature(iter_next_chunk)]
150#![feature(legacy_receiver_trait)]
151#![feature(likely_unlikely)]
152#![feature(local_waker)]
153#![feature(maybe_uninit_array_assume_init)]
154#![feature(maybe_uninit_fill)]
155#![feature(maybe_uninit_uninit_array_transpose)]
156#![feature(panic_internals)]
157#![feature(pattern)]
158#![feature(pin_coerce_unsized_trait)]
159#![feature(ptr_alignment_type)]
160#![feature(ptr_cast_slice)]
161#![feature(ptr_internals)]
162#![feature(ptr_metadata)]
163#![feature(raw_os_error_ty)]
164#![feature(rev_into_inner)]
165#![feature(seek_stream_len)]
166#![feature(set_ptr_value)]
167#![feature(share_trait)]
168#![feature(sized_type_properties)]
169#![feature(slice_from_ptr_range)]
170#![feature(slice_index_methods)]
171#![feature(slice_iter_mut_as_mut_slice)]
172#![feature(slice_ptr_get)]
173#![feature(slice_range)]
174#![feature(std_internals)]
175#![feature(temporary_niche_types)]
176#![feature(titlecase)]
177#![feature(transmutability)]
178#![feature(trivial_clone)]
179#![feature(trusted_fused)]
180#![feature(trusted_len)]
181#![feature(trusted_random_access)]
182#![feature(try_blocks)]
183#![feature(try_trait_v2)]
184#![feature(try_trait_v2_residual)]
185#![feature(tuple_trait)]
186#![feature(ub_checks)]
187#![feature(unicode_internals)]
188#![feature(unsize)]
189#![feature(unwrap_infallible)]
190#![feature(write_all_vectored)]
191#![feature(wtf8_internals)]
192#![feature(allocator_internals)]
197#![feature(allow_internal_unstable)]
198#![feature(cfg_sanitize)]
199#![feature(const_closures)]
200#![feature(const_precise_live_drops)]
201#![feature(const_trait_impl)]
202#![feature(coroutine_trait)]
203#![feature(decl_macro)]
204#![feature(dropck_eyepatch)]
205#![feature(fundamental)]
206#![feature(impl_restriction)]
207#![feature(intrinsics)]
208#![feature(lang_items)]
209#![feature(min_specialization)]
210#![feature(multiple_supertrait_upcastable)]
211#![feature(negative_impls)]
212#![feature(optimize_attribute)]
213#![feature(rustc_attrs)]
214#![feature(slice_internals)]
215#![feature(staged_api)]
216#![feature(stmt_expr_attributes)]
217#![feature(strict_provenance_lints)]
218#![feature(unboxed_closures)]
219#![feature(unsized_fn_params)]
220#![feature(with_negative_coherence)]
221#![rustc_preserve_ub_checks]
222#![feature(doc_cfg)]
226#![feature(doc_notable_trait)]
227#![feature(intra_doc_pointers)]
232
233#[macro_use]
235mod macros;
236
237mod raw_vec;
238
239pub mod alloc;
241
242pub mod borrow;
248pub mod boxed;
249#[unstable(feature = "bstr", issue = "134915")]
250pub mod bstr;
251pub mod collections;
252#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
253pub mod ffi;
254pub mod fmt;
255pub mod intrinsics;
256#[unstable(feature = "alloc_io", issue = "154046")]
257pub mod io;
258pub mod panicking;
259#[cfg(not(no_rc))]
260pub mod rc;
261pub mod slice;
262pub mod str;
263pub mod string;
264#[cfg(all(not(no_rc), not(no_sync), target_has_atomic = "ptr"))]
265pub mod sync;
266#[cfg(all(not(no_global_oom_handling), not(no_rc), not(no_sync)))]
267pub mod task;
268pub mod vec;
269#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
270pub mod wtf8;
271
272#[doc(hidden)]
273#[unstable(feature = "liballoc_internals", issue = "none", reason = "implementation detail")]
274pub mod __export {
275 pub use core::format_args;
276 pub use core::hint::must_use;
277}