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(deprecated_suggestion)]
120#![feature(deref_pure_trait)]
121#![feature(diagnostic_on_move)]
122#![feature(dispatch_from_dyn)]
123#![feature(ergonomic_clones)]
124#![feature(error_generic_member_access)]
125#![feature(exact_size_is_empty)]
126#![feature(extend_one)]
127#![feature(extend_one_unchecked)]
128#![feature(fmt_arguments_from_str)]
129#![feature(fmt_internals)]
130#![feature(fn_traits)]
131#![feature(formatting_options)]
132#![feature(freeze)]
133#![feature(generic_atomic)]
134#![feature(hasher_prefixfree_extras)]
135#![feature(inplace_iteration)]
136#![feature(iter_advance_by)]
137#![feature(iter_next_chunk)]
138#![feature(layout_for_ptr)]
139#![feature(legacy_receiver_trait)]
140#![feature(likely_unlikely)]
141#![feature(local_waker)]
142#![feature(maybe_uninit_uninit_array_transpose)]
143#![feature(panic_internals)]
144#![feature(pattern)]
145#![feature(pin_coerce_unsized_trait)]
146#![feature(ptr_alignment_type)]
147#![feature(ptr_cast_slice)]
148#![feature(ptr_internals)]
149#![feature(ptr_metadata)]
150#![feature(rev_into_inner)]
151#![feature(set_ptr_value)]
152#![feature(share_trait)]
153#![feature(sized_type_properties)]
154#![feature(slice_from_ptr_range)]
155#![feature(slice_index_methods)]
156#![feature(slice_iter_mut_as_mut_slice)]
157#![feature(slice_ptr_get)]
158#![feature(slice_range)]
159#![feature(std_internals)]
160#![feature(temporary_niche_types)]
161#![feature(titlecase)]
162#![feature(transmutability)]
163#![feature(trivial_clone)]
164#![feature(trusted_fused)]
165#![feature(trusted_len)]
166#![feature(trusted_random_access)]
167#![feature(try_blocks)]
168#![feature(try_trait_v2)]
169#![feature(try_trait_v2_residual)]
170#![feature(tuple_trait)]
171#![feature(ub_checks)]
172#![feature(unicode_internals)]
173#![feature(unsize)]
174#![feature(unwrap_infallible)]
175#![feature(wtf8_internals)]
176#![feature(allocator_internals)]
181#![feature(allow_internal_unstable)]
182#![feature(cfg_sanitize)]
183#![feature(const_closures)]
184#![feature(const_precise_live_drops)]
185#![feature(const_trait_impl)]
186#![feature(coroutine_trait)]
187#![feature(decl_macro)]
188#![feature(dropck_eyepatch)]
189#![feature(fundamental)]
190#![feature(intrinsics)]
191#![feature(lang_items)]
192#![feature(min_specialization)]
193#![feature(multiple_supertrait_upcastable)]
194#![feature(negative_impls)]
195#![feature(never_type)]
196#![feature(optimize_attribute)]
197#![feature(rustc_attrs)]
198#![feature(slice_internals)]
199#![feature(staged_api)]
200#![feature(stmt_expr_attributes)]
201#![feature(strict_provenance_lints)]
202#![feature(unboxed_closures)]
203#![feature(unsized_fn_params)]
204#![feature(with_negative_coherence)]
205#![rustc_preserve_ub_checks]
206#![feature(doc_cfg)]
210#![feature(intra_doc_pointers)]
215
216#[macro_use]
218mod macros;
219
220mod raw_vec;
221
222pub mod alloc;
224
225pub mod borrow;
231pub mod boxed;
232#[unstable(feature = "bstr", issue = "134915")]
233pub mod bstr;
234pub mod collections;
235#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
236pub mod ffi;
237pub mod fmt;
238pub mod intrinsics;
239#[cfg(not(no_rc))]
240pub mod rc;
241pub mod slice;
242pub mod str;
243pub mod string;
244#[cfg(all(not(no_rc), not(no_sync), target_has_atomic = "ptr"))]
245pub mod sync;
246#[cfg(all(not(no_global_oom_handling), not(no_rc), not(no_sync)))]
247pub mod task;
248pub mod vec;
249#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
250pub mod wtf8;
251
252#[doc(hidden)]
253#[unstable(feature = "liballoc_internals", issue = "none", reason = "implementation detail")]
254pub mod __export {
255 pub use core::format_args;
256 pub use core::hint::must_use;
257}