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(auto_cfg(hide(no_global_oom_handling, no_rc, no_sync, target_has_atomic = "ptr")))]
68#![doc(rust_logo)]
69#![feature(rustdoc_internals)]
70#![no_std]
71#![needs_allocator]
72#![deny(unsafe_op_in_unsafe_fn)]
74#![deny(fuzzy_provenance_casts)]
75#![warn(deprecated_in_future)]
76#![warn(missing_debug_implementations)]
77#![warn(missing_docs)]
78#![allow(explicit_outlives_requirements)]
79#![warn(multiple_supertrait_upcastable)]
80#![allow(internal_features)]
81#![allow(rustdoc::redundant_explicit_links)]
82#![warn(rustdoc::unescaped_backticks)]
83#![deny(ffi_unwind_calls)]
84#![warn(unreachable_pub)]
85#![feature(alloc_layout_extra)]
89#![feature(allocator_api)]
90#![feature(array_into_iter_constructors)]
91#![feature(array_windows)]
92#![feature(ascii_char)]
93#![feature(assert_matches)]
94#![feature(async_fn_traits)]
95#![feature(async_iterator)]
96#![feature(bstr)]
97#![feature(bstr_internals)]
98#![feature(cast_maybe_uninit)]
99#![feature(char_internals)]
100#![feature(char_max_len)]
101#![feature(clone_to_uninit)]
102#![feature(coerce_unsized)]
103#![feature(const_convert)]
104#![feature(const_default)]
105#![feature(const_eval_select)]
106#![feature(const_heap)]
107#![feature(core_intrinsics)]
108#![feature(deprecated_suggestion)]
109#![feature(deref_pure_trait)]
110#![feature(dispatch_from_dyn)]
111#![feature(ergonomic_clones)]
112#![feature(error_generic_member_access)]
113#![feature(exact_size_is_empty)]
114#![feature(extend_one)]
115#![feature(extend_one_unchecked)]
116#![feature(fmt_internals)]
117#![feature(fn_traits)]
118#![feature(formatting_options)]
119#![feature(generic_atomic)]
120#![feature(hasher_prefixfree_extras)]
121#![feature(inplace_iteration)]
122#![feature(iter_advance_by)]
123#![feature(iter_next_chunk)]
124#![feature(layout_for_ptr)]
125#![feature(legacy_receiver_trait)]
126#![feature(local_waker)]
127#![feature(maybe_uninit_slice)]
128#![feature(maybe_uninit_uninit_array_transpose)]
129#![feature(panic_internals)]
130#![feature(pattern)]
131#![feature(pin_coerce_unsized_trait)]
132#![feature(ptr_alignment_type)]
133#![feature(ptr_internals)]
134#![feature(ptr_metadata)]
135#![feature(set_ptr_value)]
136#![feature(sized_type_properties)]
137#![feature(slice_from_ptr_range)]
138#![feature(slice_index_methods)]
139#![feature(slice_iter_mut_as_mut_slice)]
140#![feature(slice_ptr_get)]
141#![feature(slice_range)]
142#![feature(std_internals)]
143#![feature(str_internals)]
144#![feature(temporary_niche_types)]
145#![feature(trusted_fused)]
146#![feature(trusted_len)]
147#![feature(trusted_random_access)]
148#![feature(try_trait_v2)]
149#![feature(try_with_capacity)]
150#![feature(tuple_trait)]
151#![feature(ub_checks)]
152#![feature(unicode_internals)]
153#![feature(unsize)]
154#![feature(unwrap_infallible)]
155#![feature(wtf8_internals)]
156#![feature(allocator_internals)]
161#![feature(allow_internal_unstable)]
162#![feature(cfg_sanitize)]
163#![feature(const_precise_live_drops)]
164#![feature(const_trait_impl)]
165#![feature(coroutine_trait)]
166#![feature(decl_macro)]
167#![feature(dropck_eyepatch)]
168#![feature(fundamental)]
169#![feature(hashmap_internals)]
170#![feature(intrinsics)]
171#![feature(lang_items)]
172#![feature(min_specialization)]
173#![feature(multiple_supertrait_upcastable)]
174#![feature(negative_impls)]
175#![feature(never_type)]
176#![feature(optimize_attribute)]
177#![feature(rustc_allow_const_fn_unstable)]
178#![feature(rustc_attrs)]
179#![feature(slice_internals)]
180#![feature(staged_api)]
181#![feature(stmt_expr_attributes)]
182#![feature(strict_provenance_lints)]
183#![feature(unboxed_closures)]
184#![feature(unsized_fn_params)]
185#![feature(with_negative_coherence)]
186#![rustc_preserve_ub_checks]
187#![feature(doc_cfg)]
191#![feature(intra_doc_pointers)]
196
197#[macro_use]
199mod macros;
200
201mod raw_vec;
202
203pub mod alloc;
205
206pub mod borrow;
212pub mod boxed;
213#[unstable(feature = "bstr", issue = "134915")]
214pub mod bstr;
215pub mod collections;
216#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
217pub mod ffi;
218pub mod fmt;
219#[cfg(not(no_rc))]
220pub mod rc;
221pub mod slice;
222pub mod str;
223pub mod string;
224#[cfg(all(not(no_rc), not(no_sync), target_has_atomic = "ptr"))]
225pub mod sync;
226#[cfg(all(not(no_global_oom_handling), not(no_rc), not(no_sync)))]
227pub mod task;
228pub mod vec;
229#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
230pub mod wtf8;
231
232#[doc(hidden)]
233#[unstable(feature = "liballoc_internals", issue = "none", reason = "implementation detail")]
234pub mod __export {
235 pub use core::format_args;
236 pub use core::hint::must_use;
237}