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_max_len)]
108#![feature(clone_to_uninit)]
109#![feature(coerce_unsized)]
110#![feature(const_eval_select)]
111#![feature(const_heap)]
112#![feature(core_intrinsics)]
113#![feature(deprecated_suggestion)]
114#![feature(deref_pure_trait)]
115#![feature(dispatch_from_dyn)]
116#![feature(ergonomic_clones)]
117#![feature(error_generic_member_access)]
118#![feature(exact_size_is_empty)]
119#![feature(extend_one)]
120#![feature(extend_one_unchecked)]
121#![feature(fmt_internals)]
122#![feature(fn_traits)]
123#![feature(formatting_options)]
124#![feature(hasher_prefixfree_extras)]
125#![feature(inplace_iteration)]
126#![feature(iter_advance_by)]
127#![feature(iter_next_chunk)]
128#![feature(layout_for_ptr)]
129#![feature(legacy_receiver_trait)]
130#![feature(local_waker)]
131#![feature(maybe_uninit_slice)]
132#![feature(maybe_uninit_uninit_array_transpose)]
133#![feature(nonnull_provenance)]
134#![feature(panic_internals)]
135#![feature(pattern)]
136#![feature(pin_coerce_unsized_trait)]
137#![feature(pointer_like_trait)]
138#![feature(ptr_internals)]
139#![feature(ptr_metadata)]
140#![feature(set_ptr_value)]
141#![feature(sized_type_properties)]
142#![feature(slice_from_ptr_range)]
143#![feature(slice_index_methods)]
144#![feature(slice_iter_mut_as_mut_slice)]
145#![feature(slice_ptr_get)]
146#![feature(slice_range)]
147#![feature(std_internals)]
148#![feature(str_internals)]
149#![feature(temporary_niche_types)]
150#![feature(trusted_fused)]
151#![feature(trusted_len)]
152#![feature(trusted_random_access)]
153#![feature(try_trait_v2)]
154#![feature(try_with_capacity)]
155#![feature(tuple_trait)]
156#![feature(unicode_internals)]
157#![feature(unsize)]
158#![feature(unwrap_infallible)]
159#![feature(allocator_internals)]
164#![feature(allow_internal_unstable)]
165#![feature(cfg_sanitize)]
166#![feature(const_precise_live_drops)]
167#![feature(coroutine_trait)]
168#![feature(decl_macro)]
169#![feature(dropck_eyepatch)]
170#![feature(fundamental)]
171#![feature(hashmap_internals)]
172#![feature(intrinsics)]
173#![feature(lang_items)]
174#![feature(min_specialization)]
175#![feature(multiple_supertrait_upcastable)]
176#![feature(negative_impls)]
177#![feature(never_type)]
178#![feature(optimize_attribute)]
179#![feature(rustc_allow_const_fn_unstable)]
180#![feature(rustc_attrs)]
181#![feature(slice_internals)]
182#![feature(staged_api)]
183#![feature(stmt_expr_attributes)]
184#![feature(strict_provenance_lints)]
185#![feature(unboxed_closures)]
186#![feature(unsized_fn_params)]
187#![feature(with_negative_coherence)]
188#![rustc_preserve_ub_checks]
189#![feature(doc_cfg)]
193#![feature(doc_cfg_hide)]
194#![feature(intra_doc_pointers)]
199
200#[macro_use]
202mod macros;
203
204mod raw_vec;
205
206pub mod alloc;
208
209pub mod borrow;
215pub mod boxed;
216#[unstable(feature = "bstr", issue = "134915")]
217pub mod bstr;
218pub mod collections;
219#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
220pub mod ffi;
221pub mod fmt;
222#[cfg(not(no_rc))]
223pub mod rc;
224pub mod slice;
225pub mod str;
226pub mod string;
227#[cfg(all(not(no_rc), not(no_sync), target_has_atomic = "ptr"))]
228pub mod sync;
229#[cfg(all(not(no_global_oom_handling), not(no_rc), not(no_sync)))]
230pub mod task;
231pub mod vec;
232
233#[doc(hidden)]
234#[unstable(feature = "liballoc_internals", issue = "none", reason = "implementation detail")]
235pub mod __export {
236 pub use core::format_args;
237 pub use core::hint::must_use;
238}