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