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

Various style improvements to rustc_lint::levels #122416

Merged
merged 1 commit into from
Mar 14, 2024
Merged

Commits on Mar 13, 2024

  1. Various style improvements to rustc_lint::levels

    - Replace some nested if-let with let-chains
    - Tweak a match pattern to allow shorthand struct syntax
    - Fuse an `is_empty` check with getting the last element
    - Merge some common code that emits `MalformedAttribute` and continues
    - Format `"{tool}::{name}"` in a way that's consistent with other match arms
    - Replace if-let-else-panic with let-else
    - Use early-exit to flatten a method body
    Zalathar committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    f2fcfe8 View commit details
    Browse the repository at this point in the history