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

Fix two small issues in compiler/rustc_lint/src/types.rs #78155

Merged
merged 2 commits into from
Oct 22, 2020

Commits on Oct 20, 2020

  1. rustc_lint: remove unused to_string

    In this instance, we can just pass a &str slice
    and save an allocation.
    est31 committed Oct 20, 2020
    Configuration menu
    Copy the full SHA
    c647735 View commit details
    Browse the repository at this point in the history
  2. Make {u,}int_range functions a bit nicer

    .into() guarantees safety of the conversion.
    Furthermore, the minimum value of all uints is known to be 0.
    est31 committed Oct 20, 2020
    Configuration menu
    Copy the full SHA
    00d23cf View commit details
    Browse the repository at this point in the history