diff options
| author | Andre Bogus <bogusandre@gmail.com> | 2019-09-18 08:37:41 +0200 |
|---|---|---|
| committer | Andre Bogus <bogusandre@gmail.com> | 2019-10-14 12:09:04 +0200 |
| commit | cc622608db7318b1c0fe3ccd541558436c7c6c4c (patch) | |
| tree | deb0d899304e88b7ee99ce4e22fcf9fab263afa8 /src/test/incremental/thinlto | |
| parent | a865d0ad736d76281fe47dcdf8c0c095e77edaf4 (diff) | |
| download | rust-cc622608db7318b1c0fe3ccd541558436c7c6c4c.tar.gz rust-cc622608db7318b1c0fe3ccd541558436c7c6c4c.zip | |
new lints around `#[must_use]` fns
`must_use_unit` lints unit-returning functions with a `#[must_use]` attribute, suggesting to remove it. `double_must_use` lints functions with a plain `#[must_use]` attribute, but which return a type which is already `#[must_use]`, so the attribute has no benefit. `must_use_candidate` is a pedantic lint that lints functions and methods that return some non-unit type that is not already `#[must_use]` and suggests to add the annotation.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
