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