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(
69 hide(no_global_oom_handling, no_rc, no_sync),
70 hide(target_has_atomic, values("ptr")),
71))]
72#![doc(rust_logo)]
73#![feature(rustdoc_internals)]
74#![no_std]
75#![needs_allocator]
76#![deny(unsafe_op_in_unsafe_fn)]
78#![deny(implicit_provenance_casts)]
79#![warn(deprecated_in_future)]
80#![warn(missing_debug_implementations)]
81#![warn(missing_docs)]
82#![allow(explicit_outlives_requirements)]
83#![warn(multiple_supertrait_upcastable)]
84#![allow(internal_features)]
85#![allow(rustdoc::redundant_explicit_links)]
86#![warn(rustdoc::unescaped_backticks)]
87#![deny(ffi_unwind_calls)]
88#![warn(unreachable_pub)]
89#![feature(allocator_api)]
96#![feature(array_into_iter_constructors)]
97#![feature(ascii_char)]
98#![feature(async_fn_traits)]
99#![feature(async_iterator)]
100#![feature(bstr)]
101#![feature(bstr_internals)]
102#![feature(case_ignorable)]
103#![feature(cast_maybe_uninit)]
104#![feature(cell_get_cloned)]
105#![feature(char_internals)]
106#![feature(clone_to_uninit)]
107#![feature(coerce_unsized)]
108#![feature(const_clone)]
109#![feature(const_cmp)]
110#![feature(const_convert)]
111#![feature(const_default)]
112#![feature(const_destruct)]
113#![feature(const_drop_in_place)]
114#![feature(const_eval_select)]
115#![feature(const_heap)]
116#![feature(const_index)]
117#![feature(const_option_ops)]
118#![feature(const_result_trait_fn)]
119#![feature(const_try)]
120#![feature(copied_into_inner)]
121#![feature(core_intrinsics)]
122#![feature(core_io)]
123#![feature(core_io_borrowed_buf)]
124#![feature(core_io_internals)]
125#![feature(deprecated_suggestion)]
126#![feature(deref_pure_trait)]
127#![feature(diagnostic_on_move)]
128#![feature(dispatch_from_dyn)]
129#![feature(ergonomic_clones)]
130#![feature(error_generic_member_access)]
131#![feature(exact_size_is_empty)]
132#![feature(extend_one)]
133#![feature(extend_one_unchecked)]
134#![feature(fmt_arguments_from_str)]
135#![feature(fmt_internals)]
136#![feature(fn_traits)]
137#![feature(formatting_options)]
138#![feature(freeze)]
139#![feature(generic_atomic)]
140#![feature(hasher_prefixfree_extras)]
141#![feature(inplace_iteration)]
142#![feature(io_const_error)]
143#![feature(io_const_error_internals)]
144#![feature(iter_advance_by)]
145#![feature(iter_next_chunk)]
146#![feature(layout_for_ptr)]
147#![feature(legacy_receiver_trait)]
148#![feature(likely_unlikely)]
149#![feature(local_waker)]
150#![feature(maybe_uninit_uninit_array_transpose)]
151#![feature(panic_internals)]
152#![feature(pattern)]
153#![feature(pin_coerce_unsized_trait)]
154#![feature(ptr_alignment_type)]
155#![feature(ptr_cast_slice)]
156#![feature(ptr_internals)]
157#![feature(ptr_metadata)]
158#![feature(raw_os_error_ty)]
159#![feature(rev_into_inner)]
160#![feature(set_ptr_value)]
161#![feature(share_trait)]
162#![feature(sized_type_properties)]
163#![feature(slice_from_ptr_range)]
164#![feature(slice_index_methods)]
165#![feature(slice_iter_mut_as_mut_slice)]
166#![feature(slice_ptr_get)]
167#![feature(slice_range)]
168#![feature(std_internals)]
169#![feature(temporary_niche_types)]
170#![feature(titlecase)]
171#![feature(transmutability)]
172#![feature(trivial_clone)]
173#![feature(trusted_fused)]
174#![feature(trusted_len)]
175#![feature(trusted_random_access)]
176#![feature(try_blocks)]
177#![feature(try_trait_v2)]
178#![feature(try_trait_v2_residual)]
179#![feature(try_with_capacity)]
180#![feature(tuple_trait)]
181#![feature(ub_checks)]
182#![feature(unicode_internals)]
183#![feature(unsize)]
184#![feature(unwrap_infallible)]
185#![feature(wtf8_internals)]
186#![feature(allocator_internals)]
191#![feature(allow_internal_unstable)]
192#![feature(cfg_sanitize)]
193#![feature(const_closures)]
194#![feature(const_precise_live_drops)]
195#![feature(const_trait_impl)]
196#![feature(coroutine_trait)]
197#![feature(decl_macro)]
198#![feature(dropck_eyepatch)]
199#![feature(fundamental)]
200#![feature(intrinsics)]
201#![feature(lang_items)]
202#![feature(min_specialization)]
203#![feature(multiple_supertrait_upcastable)]
204#![feature(negative_impls)]
205#![feature(never_type)]
206#![feature(optimize_attribute)]
207#![feature(rustc_attrs)]
208#![feature(slice_internals)]
209#![feature(staged_api)]
210#![feature(stmt_expr_attributes)]
211#![feature(strict_provenance_lints)]
212#![feature(unboxed_closures)]
213#![feature(unsized_fn_params)]
214#![feature(with_negative_coherence)]
215#![rustc_preserve_ub_checks]
216#![feature(doc_cfg)]
220#![feature(intra_doc_pointers)]
225
226#[macro_use]
228mod macros;
229
230mod raw_vec;
231
232pub mod alloc;
234
235pub mod borrow;
241pub mod boxed;
242#[unstable(feature = "bstr", issue = "134915")]
243pub mod bstr;
244pub mod collections;
245#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
246pub mod ffi;
247pub mod fmt;
248pub mod intrinsics;
249#[unstable(feature = "alloc_io", issue = "154046")]
250pub mod io;
251#[cfg(not(no_rc))]
252pub mod rc;
253pub mod slice;
254pub mod str;
255pub mod string;
256#[cfg(all(not(no_rc), not(no_sync), target_has_atomic = "ptr"))]
257pub mod sync;
258#[cfg(all(not(no_global_oom_handling), not(no_rc), not(no_sync)))]
259pub mod task;
260pub mod vec;
261#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
262pub mod wtf8;
263
264#[doc(hidden)]
265#[unstable(feature = "liballoc_internals", issue = "none", reason = "implementation detail")]
266pub mod __export {
267 pub use core::format_args;
268 pub use core::hint::must_use;
269}