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