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 not(any(test, bootstrap)),
70 no_global_oom_handling,
71 not(no_global_oom_handling),
72 not(no_rc),
73 not(no_sync),
74 target_has_atomic = "ptr"
75))]
76#![doc(rust_logo)]
77#![feature(rustdoc_internals)]
78#![no_std]
79#![needs_allocator]
80#![deny(unsafe_op_in_unsafe_fn)]
82#![deny(fuzzy_provenance_casts)]
83#![warn(deprecated_in_future)]
84#![warn(missing_debug_implementations)]
85#![warn(missing_docs)]
86#![allow(explicit_outlives_requirements)]
87#![warn(multiple_supertrait_upcastable)]
88#![allow(internal_features)]
89#![allow(rustdoc::redundant_explicit_links)]
90#![warn(rustdoc::unescaped_backticks)]
91#![deny(ffi_unwind_calls)]
92#![warn(unreachable_pub)]
93#![feature(alloc_layout_extra)]
97#![feature(allocator_api)]
98#![feature(array_chunks)]
99#![feature(array_into_iter_constructors)]
100#![feature(array_windows)]
101#![feature(ascii_char)]
102#![feature(assert_matches)]
103#![feature(async_fn_traits)]
104#![feature(async_iterator)]
105#![feature(bstr)]
106#![feature(bstr_internals)]
107#![feature(char_internals)]
108#![feature(char_max_len)]
109#![feature(clone_to_uninit)]
110#![feature(coerce_unsized)]
111#![feature(const_eval_select)]
112#![feature(const_heap)]
113#![feature(core_intrinsics)]
114#![feature(deprecated_suggestion)]
115#![feature(deref_pure_trait)]
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_internals)]
123#![feature(fn_traits)]
124#![feature(formatting_options)]
125#![feature(hasher_prefixfree_extras)]
126#![feature(inplace_iteration)]
127#![feature(iter_advance_by)]
128#![feature(iter_next_chunk)]
129#![feature(layout_for_ptr)]
130#![feature(legacy_receiver_trait)]
131#![feature(local_waker)]
132#![feature(maybe_uninit_slice)]
133#![feature(maybe_uninit_uninit_array_transpose)]
134#![feature(nonnull_provenance)]
135#![feature(panic_internals)]
136#![feature(pattern)]
137#![feature(pin_coerce_unsized_trait)]
138#![feature(pointer_like_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(unicode_internals)]
159#![feature(unsize)]
160#![feature(unwrap_infallible)]
161#![feature(allocator_internals)]
166#![feature(allow_internal_unstable)]
167#![feature(cfg_sanitize)]
168#![feature(const_precise_live_drops)]
169#![feature(coroutine_trait)]
170#![feature(decl_macro)]
171#![feature(dropck_eyepatch)]
172#![feature(fundamental)]
173#![feature(hashmap_internals)]
174#![feature(intrinsics)]
175#![feature(lang_items)]
176#![feature(min_specialization)]
177#![feature(multiple_supertrait_upcastable)]
178#![feature(negative_impls)]
179#![feature(never_type)]
180#![feature(optimize_attribute)]
181#![feature(rustc_allow_const_fn_unstable)]
182#![feature(rustc_attrs)]
183#![feature(slice_internals)]
184#![feature(staged_api)]
185#![feature(stmt_expr_attributes)]
186#![feature(strict_provenance_lints)]
187#![feature(unboxed_closures)]
188#![feature(unsized_fn_params)]
189#![feature(with_negative_coherence)]
190#![rustc_preserve_ub_checks]
191#![feature(doc_cfg)]
195#![feature(doc_cfg_hide)]
196#![feature(intra_doc_pointers)]
201
202#[macro_use]
204mod macros;
205
206mod raw_vec;
207
208pub mod alloc;
210
211pub mod borrow;
217pub mod boxed;
218#[unstable(feature = "bstr", issue = "134915")]
219pub mod bstr;
220pub mod collections;
221#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
222pub mod ffi;
223pub mod fmt;
224#[cfg(not(no_rc))]
225pub mod rc;
226pub mod slice;
227pub mod str;
228pub mod string;
229#[cfg(all(not(no_rc), not(no_sync), target_has_atomic = "ptr"))]
230pub mod sync;
231#[cfg(all(not(no_global_oom_handling), not(no_rc), not(no_sync)))]
232pub mod task;
233pub mod vec;
234
235#[doc(hidden)]
236#[unstable(feature = "liballoc_internals", issue = "none", reason = "implementation detail")]
237pub mod __export {
238 pub use core::format_args;
239 pub use core::hint::must_use;
240}