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#![deny(lossy_provenance_casts)]
77#![warn(deprecated_in_future)]
78#![warn(missing_debug_implementations)]
79#![warn(missing_docs)]
80#![allow(explicit_outlives_requirements)]
81#![warn(multiple_supertrait_upcastable)]
82#![allow(internal_features)]
83#![allow(rustdoc::redundant_explicit_links)]
84#![warn(rustdoc::unescaped_backticks)]
85#![deny(ffi_unwind_calls)]
86#![warn(unreachable_pub)]
87#![feature(allocator_api)]
91#![feature(array_into_iter_constructors)]
92#![feature(ascii_char)]
93#![feature(async_fn_traits)]
94#![feature(async_iterator)]
95#![feature(bstr)]
96#![feature(bstr_internals)]
97#![feature(case_ignorable)]
98#![feature(cast_maybe_uninit)]
99#![feature(cell_get_cloned)]
100#![feature(char_internals)]
101#![feature(clone_to_uninit)]
102#![feature(coerce_unsized)]
103#![feature(const_clone)]
104#![feature(const_cmp)]
105#![feature(const_convert)]
106#![feature(const_default)]
107#![feature(const_destruct)]
108#![feature(const_eval_select)]
109#![feature(const_heap)]
110#![feature(const_index)]
111#![feature(const_option_ops)]
112#![feature(const_result_trait_fn)]
113#![feature(const_try)]
114#![feature(copied_into_inner)]
115#![feature(core_intrinsics)]
116#![feature(deprecated_suggestion)]
117#![feature(deref_pure_trait)]
118#![feature(diagnostic_on_move)]
119#![feature(dispatch_from_dyn)]
120#![feature(ergonomic_clones)]
121#![feature(error_generic_member_access)]
122#![feature(exact_size_is_empty)]
123#![feature(extend_one)]
124#![feature(extend_one_unchecked)]
125#![feature(fmt_arguments_from_str)]
126#![feature(fmt_internals)]
127#![feature(fn_traits)]
128#![feature(formatting_options)]
129#![feature(freeze)]
130#![feature(generic_atomic)]
131#![feature(hasher_prefixfree_extras)]
132#![feature(inplace_iteration)]
133#![feature(iter_advance_by)]
134#![feature(iter_next_chunk)]
135#![feature(layout_for_ptr)]
136#![feature(legacy_receiver_trait)]
137#![feature(likely_unlikely)]
138#![feature(local_waker)]
139#![feature(maybe_uninit_uninit_array_transpose)]
140#![feature(panic_internals)]
141#![feature(pattern)]
142#![feature(pin_coerce_unsized_trait)]
143#![feature(ptr_alignment_type)]
144#![feature(ptr_cast_slice)]
145#![feature(ptr_internals)]
146#![feature(ptr_metadata)]
147#![feature(rev_into_inner)]
148#![feature(set_ptr_value)]
149#![feature(share_trait)]
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(tuple_trait)]
168#![feature(ub_checks)]
169#![feature(unicode_internals)]
170#![feature(unsize)]
171#![feature(unwrap_infallible)]
172#![feature(wtf8_internals)]
173#![feature(allocator_internals)]
178#![feature(allow_internal_unstable)]
179#![feature(cfg_sanitize)]
180#![feature(const_closures)]
181#![feature(const_precise_live_drops)]
182#![feature(const_trait_impl)]
183#![feature(coroutine_trait)]
184#![feature(decl_macro)]
185#![feature(dropck_eyepatch)]
186#![feature(fundamental)]
187#![feature(intrinsics)]
188#![feature(lang_items)]
189#![feature(min_specialization)]
190#![feature(multiple_supertrait_upcastable)]
191#![feature(negative_impls)]
192#![feature(never_type)]
193#![feature(optimize_attribute)]
194#![feature(rustc_attrs)]
195#![feature(slice_internals)]
196#![feature(staged_api)]
197#![feature(stmt_expr_attributes)]
198#![feature(strict_provenance_lints)]
199#![feature(unboxed_closures)]
200#![feature(unsized_fn_params)]
201#![feature(with_negative_coherence)]
202#![rustc_preserve_ub_checks]
203#![feature(doc_cfg)]
207#![feature(intra_doc_pointers)]
212
213#[macro_use]
215mod macros;
216
217mod raw_vec;
218
219pub mod alloc;
221
222pub mod borrow;
228pub mod boxed;
229#[unstable(feature = "bstr", issue = "134915")]
230pub mod bstr;
231pub mod collections;
232#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
233pub mod ffi;
234pub mod fmt;
235pub mod intrinsics;
236#[cfg(not(no_rc))]
237pub mod rc;
238pub mod slice;
239pub mod str;
240pub mod string;
241#[cfg(all(not(no_rc), not(no_sync), target_has_atomic = "ptr"))]
242pub mod sync;
243#[cfg(all(not(no_global_oom_handling), not(no_rc), not(no_sync)))]
244pub mod task;
245pub mod vec;
246#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
247pub mod wtf8;
248
249#[doc(hidden)]
250#[unstable(feature = "liballoc_internals", issue = "none", reason = "implementation detail")]
251pub mod __export {
252 pub use core::format_args;
253 pub use core::hint::must_use;
254}