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(hide(no_global_oom_handling, no_rc, no_sync, target_has_atomic = "ptr")))]
69#![doc(rust_logo)]
70#![feature(rustdoc_internals)]
71#![no_std]
72#![needs_allocator]
73#![deny(unsafe_op_in_unsafe_fn)]
75#![deny(fuzzy_provenance_casts)]
76#![warn(deprecated_in_future)]
77#![warn(missing_debug_implementations)]
78#![warn(missing_docs)]
79#![allow(explicit_outlives_requirements)]
80#![warn(multiple_supertrait_upcastable)]
81#![allow(internal_features)]
82#![allow(rustdoc::redundant_explicit_links)]
83#![warn(rustdoc::unescaped_backticks)]
84#![deny(ffi_unwind_calls)]
85#![warn(unreachable_pub)]
86#![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_eval_select)]
111#![feature(const_heap)]
112#![feature(const_index)]
113#![feature(const_option_ops)]
114#![feature(const_result_trait_fn)]
115#![feature(const_try)]
116#![feature(copied_into_inner)]
117#![feature(core_intrinsics)]
118#![feature(deprecated_suggestion)]
119#![feature(deref_pure_trait)]
120#![feature(diagnostic_on_move)]
121#![feature(dispatch_from_dyn)]
122#![feature(ergonomic_clones)]
123#![feature(error_generic_member_access)]
124#![feature(exact_size_is_empty)]
125#![feature(extend_one)]
126#![feature(extend_one_unchecked)]
127#![feature(fmt_arguments_from_str)]
128#![feature(fmt_internals)]
129#![feature(fn_traits)]
130#![feature(formatting_options)]
131#![feature(freeze)]
132#![feature(generic_atomic)]
133#![feature(hasher_prefixfree_extras)]
134#![feature(inplace_iteration)]
135#![feature(iter_advance_by)]
136#![feature(iter_next_chunk)]
137#![feature(layout_for_ptr)]
138#![feature(legacy_receiver_trait)]
139#![feature(likely_unlikely)]
140#![feature(local_waker)]
141#![feature(maybe_uninit_uninit_array_transpose)]
142#![feature(panic_internals)]
143#![feature(pattern)]
144#![feature(pin_coerce_unsized_trait)]
145#![feature(ptr_alignment_type)]
146#![feature(ptr_internals)]
147#![feature(ptr_metadata)]
148#![feature(rev_into_inner)]
149#![feature(set_ptr_value)]
150#![feature(sized_type_properties)]
151#![feature(slice_from_ptr_range)]
152#![feature(slice_index_methods)]
153#![feature(slice_iter_mut_as_mut_slice)]
154#![feature(slice_ptr_get)]
155#![feature(slice_range)]
156#![feature(std_internals)]
157#![feature(temporary_niche_types)]
158#![feature(titlecase)]
159#![feature(transmutability)]
160#![feature(trivial_clone)]
161#![feature(trusted_fused)]
162#![feature(trusted_len)]
163#![feature(trusted_random_access)]
164#![feature(try_blocks)]
165#![feature(try_trait_v2)]
166#![feature(try_trait_v2_residual)]
167#![feature(try_with_capacity)]
168#![feature(tuple_trait)]
169#![feature(ub_checks)]
170#![feature(unicode_internals)]
171#![feature(unsize)]
172#![feature(unwrap_infallible)]
173#![feature(wtf8_internals)]
174#![feature(allocator_internals)]
179#![feature(allow_internal_unstable)]
180#![feature(cfg_sanitize)]
181#![feature(const_closures)]
182#![feature(const_precise_live_drops)]
183#![feature(const_trait_impl)]
184#![feature(coroutine_trait)]
185#![feature(decl_macro)]
186#![feature(dropck_eyepatch)]
187#![feature(fundamental)]
188#![feature(intrinsics)]
189#![feature(lang_items)]
190#![feature(min_specialization)]
191#![feature(multiple_supertrait_upcastable)]
192#![feature(negative_impls)]
193#![feature(never_type)]
194#![feature(optimize_attribute)]
195#![feature(rustc_attrs)]
196#![feature(slice_internals)]
197#![feature(staged_api)]
198#![feature(stmt_expr_attributes)]
199#![feature(strict_provenance_lints)]
200#![feature(unboxed_closures)]
201#![feature(unsized_fn_params)]
202#![feature(with_negative_coherence)]
203#![rustc_preserve_ub_checks]
204#![feature(doc_cfg)]
208#![feature(intra_doc_pointers)]
213
214#[macro_use]
216mod macros;
217
218mod raw_vec;
219
220pub mod alloc;
222
223pub mod borrow;
229pub mod boxed;
230#[unstable(feature = "bstr", issue = "134915")]
231pub mod bstr;
232pub mod collections;
233#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
234pub mod ffi;
235pub mod fmt;
236pub mod intrinsics;
237#[cfg(not(no_rc))]
238pub mod rc;
239pub mod slice;
240pub mod str;
241pub mod string;
242#[cfg(all(not(no_rc), not(no_sync), target_has_atomic = "ptr"))]
243pub mod sync;
244#[cfg(all(not(no_global_oom_handling), not(no_rc), not(no_sync)))]
245pub mod task;
246pub mod vec;
247#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
248pub mod wtf8;
249
250#[doc(hidden)]
251#[unstable(feature = "liballoc_internals", issue = "none", reason = "implementation detail")]
252pub mod __export {
253 pub use core::format_args;
254 pub use core::hint::must_use;
255}