about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorJulian Knodt <julianknodt@gmail.com>2025-05-13 11:17:09 +0900
committerJulian Knodt <julianknodt@gmail.com>2025-05-13 12:34:53 +0900
commitab1c49a7facad5083c20407a2b1fd0b2104e174e (patch)
treea1a87ad5180e6c482faad0e9f7a0ac7348e65e7a /compiler/rustc_codegen_llvm/src
parent8405332bdf09b153e475f83b8b8ebf8d4e8eb81f (diff)
downloadrust-ab1c49a7facad5083c20407a2b1fd0b2104e174e.tar.gz
rust-ab1c49a7facad5083c20407a2b1fd0b2104e174e.zip
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
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions