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