Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new lints around#[must_use] #4560

Merged
merged 1 commit into from
Oct 14, 2019
Merged

new lints around#[must_use] #4560

merged 1 commit into from
Oct 14, 2019

Commits on Oct 14, 2019

  1. 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.
    llogiq committed Oct 14, 2019
    Configuration menu
    Copy the full SHA
    cc62260 View commit details
    Browse the repository at this point in the history