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)]
93#![feature(array_into_iter_constructors)]
94#![feature(ascii_char)]
95#![feature(async_fn_traits)]
96#![feature(async_iterator)]
97#![feature(bstr)]
98#![feature(bstr_internals)]
99#![feature(case_ignorable)]
100#![feature(cast_maybe_uninit)]
101#![feature(cell_get_cloned)]
102#![feature(char_internals)]
103#![feature(clone_to_uninit)]
104#![feature(coerce_unsized)]
105#![feature(const_clone)]
106#![feature(const_cmp)]
107#![feature(const_convert)]
108#![feature(const_default)]
109#![feature(const_destruct)]
110#![feature(const_drop_in_place)]
111#![feature(const_eval_select)]
112#![feature(const_heap)]
113#![feature(const_index)]
114#![feature(const_option_ops)]
115#![feature(const_result_trait_fn)]
116#![feature(const_try)]
117#![feature(copied_into_inner)]
118#![feature(core_intrinsics)]
119#![feature(core_io)]
120#![feature(core_io_borrowed_buf)]
121#![feature(core_io_internals)]
122#![feature(deprecated_suggestion)]
123#![feature(deref_pure_trait)]
124#![feature(diagnostic_on_move)]
125#![feature(dispatch_from_dyn)]
126#![feature(ergonomic_clones)]
127#![feature(error_generic_member_access)]
128#![feature(exact_size_is_empty)]
129#![feature(extend_one)]
130#![feature(extend_one_unchecked)]
131#![feature(fmt_arguments_from_str)]
132#![feature(fmt_internals)]
133#![feature(fn_traits)]
134#![feature(formatting_options)]
135#![feature(freeze)]
136#![feature(generic_atomic)]
137#![feature(hasher_prefixfree_extras)]
138#![feature(inplace_iteration)]
139#![feature(io_const_error)]
140#![feature(io_const_error_internals)]
141#![feature(iter_advance_by)]
142#![feature(iter_next_chunk)]
143#![feature(layout_for_ptr)]
144#![feature(legacy_receiver_trait)]
145#![feature(likely_unlikely)]
146#![feature(local_waker)]
147#![feature(maybe_uninit_array_assume_init)]
148#![feature(maybe_uninit_uninit_array_transpose)]
149#![feature(panic_internals)]
150#![feature(pattern)]
151#![feature(pin_coerce_unsized_trait)]
152#![feature(ptr_alignment_type)]
153#![feature(ptr_cast_slice)]
154#![feature(ptr_internals)]
155#![feature(ptr_metadata)]
156#![feature(raw_os_error_ty)]
157#![feature(rev_into_inner)]
158#![feature(seek_stream_len)]
159#![feature(set_ptr_value)]
160#![feature(share_trait)]
161#![feature(sized_type_properties)]
162#![feature(slice_from_ptr_range)]
163#![feature(slice_index_methods)]
164#![feature(slice_iter_mut_as_mut_slice)]
165#![feature(slice_ptr_get)]
166#![feature(slice_range)]
167#![feature(std_internals)]
168#![feature(temporary_niche_types)]
169#![feature(titlecase)]
170#![feature(transmutability)]
171#![feature(trivial_clone)]
172#![feature(trusted_fused)]
173#![feature(trusted_len)]
174#![feature(trusted_random_access)]
175#![feature(try_blocks)]
176#![feature(try_trait_v2)]
177#![feature(try_trait_v2_residual)]
178#![feature(tuple_trait)]
179#![feature(ub_checks)]
180#![feature(unicode_internals)]
181#![feature(unsize)]
182#![feature(unwrap_infallible)]
183#![feature(wtf8_internals)]
184#![feature(allocator_internals)]
189#![feature(allow_internal_unstable)]
190#![feature(cfg_sanitize)]
191#![feature(const_closures)]
192#![feature(const_precise_live_drops)]
193#![feature(const_trait_impl)]
194#![feature(coroutine_trait)]
195#![feature(decl_macro)]
196#![feature(dropck_eyepatch)]
197#![feature(fundamental)]
198#![feature(intrinsics)]
199#![feature(lang_items)]
200#![feature(min_specialization)]
201#![feature(multiple_supertrait_upcastable)]
202#![feature(negative_impls)]
203#![feature(never_type)]
204#![feature(optimize_attribute)]
205#![feature(rustc_attrs)]
206#![feature(slice_internals)]
207#![feature(staged_api)]
208#![feature(stmt_expr_attributes)]
209#![feature(strict_provenance_lints)]
210#![feature(unboxed_closures)]
211#![feature(unsized_fn_params)]
212#![feature(with_negative_coherence)]
213#![rustc_preserve_ub_checks]
214#![feature(doc_cfg)]
218#![feature(intra_doc_pointers)]
223
224#[macro_use]
226mod macros;
227
228mod raw_vec;
229
230pub mod alloc;
232
233pub mod borrow;
239pub mod boxed;
240#[unstable(feature = "bstr", issue = "134915")]
241pub mod bstr;
242pub mod collections;
243#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
244pub mod ffi;
245pub mod fmt;
246pub mod intrinsics;
247#[unstable(feature = "alloc_io", issue = "154046")]
248pub mod io;
249#[cfg(not(no_rc))]
250pub mod rc;
251pub mod slice;
252pub mod str;
253pub mod string;
254#[cfg(all(not(no_rc), not(no_sync), target_has_atomic = "ptr"))]
255pub mod sync;
256#[cfg(all(not(no_global_oom_handling), not(no_rc), not(no_sync)))]
257pub mod task;
258pub mod vec;
259#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
260pub mod wtf8;
261
262#[doc(hidden)]
263#[unstable(feature = "liballoc_internals", issue = "none", reason = "implementation detail")]
264pub mod __export {
265 pub use core::format_args;
266 pub use core::hint::must_use;
267}