rust/library/core/src/array
Julian Knodt ab1c49a7fa Add #[must_use] to Array::map
The output of Array::map is intended to be an array of the same size, and does not modify the
original in place nor is it intended for side-effects. Thus, under normal circumstances it should be consumed.

See [discussion](https://internals.rust-lang.org/t/array-map-annotate-with-must-use/22813/26).

Attaching to tracking issue #75243
2025-05-13 12:34:53 +09:00
..
iter PR feedback 2025-04-09 21:44:59 -07:00
ascii.rs Remove #[cfg(not(test))] gates in core 2025-03-06 13:21:59 -08:00
drain.rs Allow canonicalizing the array::map loop in trusted cases 2023-02-04 16:44:51 -08:00
equality.rs Import the 2021 prelude in the core crate 2024-03-25 13:12:06 -07:00
iter.rs Polymorphize array::IntoIter's iterator impl 2025-04-05 17:55:24 -07:00
mod.rs Add #[must_use] to Array::map 2025-05-13 12:34:53 +09:00