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

Rollup of 5 pull requests #5470

Merged
merged 18 commits into from
Apr 15, 2020
Merged

Rollup of 5 pull requests #5470

merged 18 commits into from
Apr 15, 2020

Commits on Apr 9, 2020

  1. Configuration menu
    Copy the full SHA
    380f721 View commit details
    Browse the repository at this point in the history
  2. Update doc generation script

    ThibsG committed Apr 9, 2020
    Configuration menu
    Copy the full SHA
    629cc4a View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2020

  1. Disallow bit-shifting in integer_arithmetic lint

    With this change, the lint checks all operations that are defined as
    being capable of overflow in the Rust Reference.
    michaelsproul committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    23df4a0 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2020

  1. large_enum_variant: Report sizes of variants

    This reports the sizes of the largest and second-largest variants.
    phansch committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    69c3e9c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d3ebd06 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    512f23f View commit details
    Browse the repository at this point in the history
  4. Working basic dereference clip

    tommilligan authored and ThibsG committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    b2d9868 View commit details
    Browse the repository at this point in the history
  5. Global rework + fix imports

    ThibsG committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    6b4ab82 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c113243 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b6d4330 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    72b9ae2 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    3c2bbcf View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    ce372c1 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#5226 - ThibsG:DerefExplicit1566, r=flip1995

    Add lint for explicit deref and deref_mut method calls
    
    This PR adds the lint `explicit_deref_method` that suggests replacing `deref()` and `deref_mut()` with `&*a` and `&mut *a`.
    
    It doesn't lint inside macros.
    
    This PR is the continuation of  rust-lang#3258.
    
    changelog: Add lint `explicit_deref_method`.
    
    Fixes: rust-lang#1566
    flip1995 authored Apr 15, 2020
    Configuration menu
    Copy the full SHA
    3481bf4 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#5248 - ThibsG:ConstValues, r=flip1995

    Add lint on large non scalar const
    
    This PR adds the new lint `non_scalar_const` that aims to warn against `const` declaration of large arrays. For performance, because of inlining, large arrays should be preferably declared as `static`.
    
    Note: i made this one to warn on all const arrays, whether they are in a body function or not. I don't know if this is really necessary, i could just reduce this lint to variables out of function scope.
    
    Fixes: rust-lang#400
    
    changelog: add new lint for large non-scalar types declared as const
    flip1995 authored Apr 15, 2020
    Configuration menu
    Copy the full SHA
    ceea3c6 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#5430 - michaelsproul:integer-arithmetic, r=…

    …flip1995
    
    Disallow bit-shifting in integer_arithmetic
    
    Make the `integer_arithmetic` lint detect all the operations that are defined as being capable of overflow in the [Rust Reference](https://doc.rust-lang.org/reference/expressions/operator-expr.html#overflow), by also linting for bit-shifting operations (`<<`, `>>`).
    
    changelog: Disallow bit-shifting in `integer_arithmetic`
    flip1995 authored Apr 15, 2020
    Configuration menu
    Copy the full SHA
    2538e63 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#5466 - phansch:large-enum-variant-output, r…

    …=flip1995
    
    large_enum_variant: Report sizes of variants
    
    This reports the sizes of the largest and second-largest variants.
    
    Closes rust-lang#5459
    
    changelog: `large_enum_variant`: Report the sizes of the largest and second-largest variants.
    flip1995 authored Apr 15, 2020
    Configuration menu
    Copy the full SHA
    071a590 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#5468 - Toxyxer:zero-single-char-names, r=fl…

    …ip1995
    
    Zero single char names
    
    Fixes: rust-lang#4086
    
    changelog:
    - Make the inequality strict
    flip1995 authored Apr 15, 2020
    Configuration menu
    Copy the full SHA
    19183a6 View commit details
    Browse the repository at this point in the history