diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-03-17 13:14:26 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-17 13:14:26 +0000 |
| commit | 0a18e4355a38bd0657e2083a81198f47b76857b6 (patch) | |
| tree | 95fee89bc073a7651d99bf32540fa48fc2da948d /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff | |
| parent | 502e30e6767ef26cf56158a92b47b3b8e9b63235 (diff) | |
| parent | 217b30568ed8dc6e11df9978a31747cb1fc9a094 (diff) | |
| download | rust-0a18e4355a38bd0657e2083a81198f47b76857b6.tar.gz rust-0a18e4355a38bd0657e2083a81198f47b76857b6.zip | |
Merge #11740
11740: Insert #[must_use] in generate_is_empty_from_len r=lnicola a=Walther Inserts `#[must_use]` for the generated `is_empty` methods. I also added the `#[must_use]` for the `len()` methods in the documentation examples and tests for this generator while at it, to make sure they too encourage the use of the annotation. 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: Walther <veeti.haapsamo@gmail.com>
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions
