1#![allow(incomplete_features)]
60#![allow(unused_attributes)]
61#![stable(feature = "alloc", since = "1.36.0")]
62#![doc(
63 html_playground_url = "https://play.rust-lang.org/",
64 issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
65 test(no_crate_inject, attr(allow(unused_variables), deny(warnings)))
66)]
67#![doc(cfg_hide(
68 not(test),
69 no_global_oom_handling,
70 not(no_global_oom_handling),
71 not(no_rc),
72 not(no_sync),
73 target_has_atomic = "ptr"
74))]
75#![doc(rust_logo)]
76#![feature(rustdoc_internals)]
77#![no_std]
78#![needs_allocator]
79#![deny(unsafe_op_in_unsafe_fn)]
81#![deny(fuzzy_provenance_casts)]
82#![warn(deprecated_in_future)]
83#![warn(missing_debug_implementations)]
84#![warn(missing_docs)]
85#![allow(explicit_outlives_requirements)]
86#![warn(multiple_supertrait_upcastable)]
87#![allow(internal_features)]
88#![allow(rustdoc::redundant_explicit_links)]
89#![warn(rustdoc::unescaped_backticks)]
90#![deny(ffi_unwind_calls)]
91#![warn(unreachable_pub)]
92#![feature(alloc_layout_extra)]
96#![feature(allocator_api)]
97#![feature(array_chunks)]
98#![feature(array_into_iter_constructors)]
99#![feature(array_windows)]
100#![feature(ascii_char)]
101#![feature(assert_matches)]
102#![feature(async_fn_traits)]
103#![feature(async_iterator)]
104#![feature(bstr)]
105#![feature(bstr_internals)]
106#![feature(char_internals)]
107#![feature(char_max_len)]
108#![feature(clone_to_uninit)]
109#![feature(coerce_unsized)]
110#![feature(const_default)]
111#![feature(const_eval_select)]
112#![feature(const_heap)]
113#![feature(const_trait_impl)]
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_internals)]
124#![feature(fn_traits)]
125#![feature(formatting_options)]
126#![feature(generic_atomic)]
127#![feature(hasher_prefixfree_extras)]
128#![feature(inplace_iteration)]
129#![feature(iter_advance_by)]
130#![feature(iter_next_chunk)]
131#![feature(layout_for_ptr)]
132#![feature(legacy_receiver_trait)]
133#![feature(local_waker)]
134#![feature(maybe_uninit_slice)]
135#![feature(maybe_uninit_uninit_array_transpose)]
136#![feature(panic_internals)]
137#![feature(pattern)]
138#![feature(pin_coerce_unsized_trait)]
139#![feature(ptr_alignment_type)]
140#![feature(ptr_internals)]
141#![feature(ptr_metadata)]
142#![feature(set_ptr_value)]
143#![feature(sized_type_properties)]
144#![feature(slice_from_ptr_range)]
145#![feature(slice_index_methods)]
146#![feature(slice_iter_mut_as_mut_slice)]
147#![feature(slice_ptr_get)]
148#![feature(slice_range)]
149#![feature(std_internals)]
150#![feature(str_internals)]
151#![feature(temporary_niche_types)]
152#![feature(trusted_fused)]
153#![feature(trusted_len)]
154#![feature(trusted_random_access)]
155#![feature(try_trait_v2)]
156#![feature(try_with_capacity)]
157#![feature(tuple_trait)]
158#![feature(ub_checks)]
159#![feature(unicode_internals)]
160#![feature(unsize)]
161#![feature(unwrap_infallible)]
162#![feature(allocator_internals)]
167#![feature(allow_internal_unstable)]
168#![feature(cfg_sanitize)]
169#![feature(const_precise_live_drops)]
170#![feature(coroutine_trait)]
171#![feature(decl_macro)]
172#![feature(dropck_eyepatch)]
173#![feature(fundamental)]
174#![feature(hashmap_internals)]
175#![feature(intrinsics)]
176#![feature(lang_items)]
177#![feature(min_specialization)]
178#![feature(multiple_supertrait_upcastable)]
179#![feature(negative_impls)]
180#![feature(never_type)]
181#![feature(optimize_attribute)]
182#![feature(rustc_allow_const_fn_unstable)]
183#![feature(rustc_attrs)]
184#![feature(slice_internals)]
185#![feature(staged_api)]
186#![feature(stmt_expr_attributes)]
187#![feature(strict_provenance_lints)]
188#![feature(unboxed_closures)]
189#![feature(unsized_fn_params)]
190#![feature(with_negative_coherence)]
191#![rustc_preserve_ub_checks]
192#![feature(doc_cfg)]
196#![feature(doc_cfg_hide)]
197#![feature(intra_doc_pointers)]
202
203#[macro_use]
205mod macros;
206
207mod raw_vec;
208
209pub mod alloc;
211
212pub mod borrow;
218pub mod boxed;
219#[unstable(feature = "bstr", issue = "134915")]
220pub mod bstr;
221pub mod collections;
222#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
223pub mod ffi;
224pub mod fmt;
225#[cfg(not(no_rc))]
226pub mod rc;
227pub mod slice;
228pub mod str;
229pub mod string;
230#[cfg(all(not(no_rc), not(no_sync), target_has_atomic = "ptr"))]
231pub mod sync;
232#[cfg(all(not(no_global_oom_handling), not(no_rc), not(no_sync)))]
233pub mod task;
234pub mod vec;
235
236#[doc(hidden)]
237#[unstable(feature = "liballoc_internals", issue = "none", reason = "implementation detail")]
238pub mod __export {
239 pub use core::format_args;
240 pub use core::hint::must_use;
241}