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)]
93#![feature(array_into_iter_constructors)]
94#![feature(ascii_char)]
95#![feature(async_fn_traits)]
96#![feature(async_iterator)]
97#![feature(borrowed_buf_init)]
98#![feature(bstr)]
99#![feature(bstr_internals)]
100#![feature(can_vector)]
101#![feature(case_ignorable)]
102#![feature(cast_maybe_uninit)]
103#![feature(cell_get_cloned)]
104#![feature(char_internals)]
105#![feature(clone_to_uninit)]
106#![feature(coerce_unsized)]
107#![feature(const_clone)]
108#![feature(const_cmp)]
109#![feature(const_convert)]
110#![feature(const_default)]
111#![feature(const_destruct)]
112#![feature(const_drop_in_place)]
113#![feature(const_eval_select)]
114#![feature(const_heap)]
115#![feature(const_index)]
116#![feature(const_option_ops)]
117#![feature(const_result_trait_fn)]
118#![feature(const_try)]
119#![feature(copied_into_inner)]
120#![feature(core_intrinsics)]
121#![feature(core_io)]
122#![feature(core_io_borrowed_buf)]
123#![feature(core_io_internals)]
124#![feature(cursor_split)]
125#![feature(deprecated_suggestion)]
126#![feature(deref_pure_trait)]
127#![feature(diagnostic_on_move)]
128#![feature(dispatch_from_dyn)]
129#![feature(drop_guard)]
130#![feature(ergonomic_clones)]
131#![feature(error_generic_member_access)]
132#![feature(exact_size_is_empty)]
133#![feature(extend_one)]
134#![feature(extend_one_unchecked)]
135#![feature(fmt_arguments_from_str)]
136#![feature(fmt_internals)]
137#![feature(fn_traits)]
138#![feature(formatting_options)]
139#![feature(freeze)]
140#![feature(generic_atomic)]
141#![feature(hasher_prefixfree_extras)]
142#![feature(inplace_iteration)]
143#![feature(io_const_error)]
144#![feature(io_const_error_internals)]
145#![feature(io_slice_as_bytes)]
146#![feature(iter_advance_by)]
147#![feature(iter_next_chunk)]
148#![feature(layout_for_ptr)]
149#![feature(legacy_receiver_trait)]
150#![feature(likely_unlikely)]
151#![feature(local_waker)]
152#![feature(maybe_uninit_array_assume_init)]
153#![feature(maybe_uninit_fill)]
154#![feature(maybe_uninit_uninit_array_transpose)]
155#![feature(panic_internals)]
156#![feature(pattern)]
157#![feature(pin_coerce_unsized_trait)]
158#![feature(ptr_alignment_type)]
159#![feature(ptr_cast_slice)]
160#![feature(ptr_internals)]
161#![feature(ptr_metadata)]
162#![feature(raw_os_error_ty)]
163#![feature(rev_into_inner)]
164#![feature(seek_stream_len)]
165#![feature(set_ptr_value)]
166#![feature(share_trait)]
167#![feature(sized_type_properties)]
168#![feature(slice_from_ptr_range)]
169#![feature(slice_index_methods)]
170#![feature(slice_iter_mut_as_mut_slice)]
171#![feature(slice_ptr_get)]
172#![feature(slice_range)]
173#![feature(std_internals)]
174#![feature(temporary_niche_types)]
175#![feature(titlecase)]
176#![feature(transmutability)]
177#![feature(trivial_clone)]
178#![feature(trusted_fused)]
179#![feature(trusted_len)]
180#![feature(trusted_random_access)]
181#![feature(try_blocks)]
182#![feature(try_trait_v2)]
183#![feature(try_trait_v2_residual)]
184#![feature(tuple_trait)]
185#![feature(ub_checks)]
186#![feature(unicode_internals)]
187#![feature(unsize)]
188#![feature(unwrap_infallible)]
189#![feature(write_all_vectored)]
190#![feature(wtf8_internals)]
191#![feature(allocator_internals)]
196#![feature(allow_internal_unstable)]
197#![feature(cfg_sanitize)]
198#![feature(const_closures)]
199#![feature(const_precise_live_drops)]
200#![feature(const_trait_impl)]
201#![feature(coroutine_trait)]
202#![feature(decl_macro)]
203#![feature(dropck_eyepatch)]
204#![feature(fundamental)]
205#![feature(intrinsics)]
206#![feature(lang_items)]
207#![feature(min_specialization)]
208#![feature(multiple_supertrait_upcastable)]
209#![feature(negative_impls)]
210#![feature(never_type)]
211#![feature(optimize_attribute)]
212#![feature(rustc_attrs)]
213#![feature(slice_internals)]
214#![feature(staged_api)]
215#![feature(stmt_expr_attributes)]
216#![feature(strict_provenance_lints)]
217#![feature(unboxed_closures)]
218#![feature(unsized_fn_params)]
219#![feature(with_negative_coherence)]
220#![rustc_preserve_ub_checks]
221#![feature(doc_cfg)]
225#![feature(doc_notable_trait)]
226#![feature(intra_doc_pointers)]
231
232#[macro_use]
234mod macros;
235
236mod raw_vec;
237
238pub mod alloc;
240
241pub mod borrow;
247pub mod boxed;
248#[unstable(feature = "bstr", issue = "134915")]
249pub mod bstr;
250pub mod collections;
251#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
252pub mod ffi;
253pub mod fmt;
254pub mod intrinsics;
255#[unstable(feature = "alloc_io", issue = "154046")]
256pub mod io;
257#[cfg(not(no_rc))]
258pub mod rc;
259pub mod slice;
260pub mod str;
261pub mod string;
262#[cfg(all(not(no_rc), not(no_sync), target_has_atomic = "ptr"))]
263pub mod sync;
264#[cfg(all(not(no_global_oom_handling), not(no_rc), not(no_sync)))]
265pub mod task;
266pub mod vec;
267#[cfg(all(not(no_rc), not(no_sync), not(no_global_oom_handling)))]
268pub mod wtf8;
269
270#[doc(hidden)]
271#[unstable(feature = "liballoc_internals", issue = "none", reason = "implementation detail")]
272pub mod __export {
273 pub use core::format_args;
274 pub use core::hint::must_use;
275}