about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-03-17 12:58:14 +0000
committerGitHub <noreply@github.com>2022-03-17 12:58:14 +0000
commit502e30e6767ef26cf56158a92b47b3b8e9b63235 (patch)
treeec0cbf8e1e86ec813c5a71e819680acd446079ac /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
parent98143da79924fe2044acae749ffb01923f2f14c6 (diff)
parent7e05e10495cd0f83cbcba2e7d881b616998cf7dc (diff)
parente5adbd88e91c8b823cd9e180d9ec55655928b768 (diff)
downloadrust-502e30e6767ef26cf56158a92b47b3b8e9b63235.tar.gz
rust-502e30e6767ef26cf56158a92b47b3b8e9b63235.zip
Merge #11737 #11739
11737: Emit `#[must_use]` in `Generate new` assist r=lnicola a=lnicola

Closes #11736

11739: Insert #[must_use] in generate_getter r=lnicola a=Walther

Inserts `#[must_use]` for the generated getter methods.

From discussion in https://github.com/rust-analyzer/rust-analyzer/issues/11736 and https://github.com/rust-analyzer/rust-analyzer/pull/11738

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
Co-authored-by: Walther <veeti.haapsamo@gmail.com>