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

Update Clippy #98706

Merged
merged 174 commits into from
Jul 1, 2022
Merged

Update Clippy #98706

merged 174 commits into from
Jul 1, 2022

Commits on May 17, 2022

  1. Configuration menu
    Copy the full SHA
    430575b View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2022

  1. Configuration menu
    Copy the full SHA
    5a70d88 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2022

  1. Configuration menu
    Copy the full SHA
    6d6c63e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2967127 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b46f1c4 View commit details
    Browse the repository at this point in the history
  4. Some refactoring

    botahamec committed Jun 10, 2022
    Configuration menu
    Copy the full SHA
    b0c2030 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    01c75e4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f3dc7ae View commit details
    Browse the repository at this point in the history
  7. Slight documentation change

    botahamec committed Jun 10, 2022
    Configuration menu
    Copy the full SHA
    ded2bb5 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2022

  1. Ignore bodies containing todo!() in clippy::if_same_then_else

    Dany Marcoux authored and kyoto7250 committed Jun 15, 2022
    Configuration menu
    Copy the full SHA
    9306e9a View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2022

  1. Configuration menu
    Copy the full SHA
    7cb4cef View commit details
    Browse the repository at this point in the history
  2. bless clippy tests

    klensy committed Jun 16, 2022
    Configuration menu
    Copy the full SHA
    922ff84 View commit details
    Browse the repository at this point in the history
  3. bless clippy ui tests

    WaffleLapkin committed Jun 16, 2022
    Configuration menu
    Copy the full SHA
    4d88993 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f8f9d01 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f095f80 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2022

  1. Configuration menu
    Copy the full SHA
    a5b6d25 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    72c73f8 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#97798 - WaffleLapkin:allow_for_suggestions_…

    …that_are_quite_far_away_from_each_other, r=estebank
    
    Hide irrelevant lines in suggestions to allow for suggestions that are far from each other to be shown
    
    This is an attempt to fix suggestions one part of which is 6 lines or more far from the first. I've noticed "the problem" (of not showing some parts of the suggestion) here: rust-lang#97759 (comment).
    
    I'm not sure about the implementation (this big closure is just bad and makes already complicated code even more so), but I want to at least discuss the result.
    
    Here is an example of how this changes the output:
    
    Before:
    ```text
    help: consider enclosing expression in a block
      |
    3 ~     'l: { match () { () => break 'l,
    4 |
    5 |
    6 |
    7 |
    8 |
    ...
    ```
    
    After:
    ```text
    help: consider enclosing expression in a block
      |
    3 ~     'l: { match () { () => break 'l,
    4 |
    ...
    31|
    32~ } };
      |
    ```
    
    r? `@estebank`
    `@rustbot` label +A-diagnostics +A-suggestion-diagnostics
    Dylan-DPC committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    51e2d6a View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#98191 - TaKO8Ki:remove-rest-of-unnecessary-…

    …to-string, r=Dylan-DPC
    
    Remove the rest of unnecessary `to_string`
    
    I removed most of unnecessary `to_string` in rust-lang#98043. This patch removes the rest of them I missed.
    Dylan-DPC committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    2cc798b View commit details
    Browse the repository at this point in the history
  5. feat(lint): add default_iter_empty

    Update description in clippy_lints/src/default_iter_empty.rs
    
    Co-authored-by: Fridtjof Stoldt <xFrednet@gmail.com>
    
    Update clippy_lints/src/default_iter_empty.rs
    
    Co-authored-by: Alex Macleod <alex@macleod.io>
    
    Update clippy_lints/src/default_iter_empty.rs
    
    Co-authored-by: Alex Macleod <alex@macleod.io>
    
    renamed default_iter_empty to default_instead_of_iter_empty
    
    Avoid duplicate messages
    
    add tests for regression
    
    rewrite 'Why is this bad?'
    
    cargo dev fmt
    
    delete default_iter_empty lint in renamed_lint.rs
    
    rewrite a message in the suggestion
    
    cargo dev update_lints --check
    kyoto7250 committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    2bb8c45 View commit details
    Browse the repository at this point in the history
  6. check only the end

    kyoto7250 committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    697c75e View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#97892 - klensy:fix-spaces, r=oli-obk

    diagnostics: remove trailing spaces
    
    Remove few occurrences of trailing spaces and drive by fix of needless alloc of const string.
    bors committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    09c9301 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#8989 - kyoto7250:default_iter_empty, r=Alexendoo

    feat(lint): add default_iter_empty
    
    close rust-lang#8915
    
    This PR adds `default_iter_empty` lint.
    
    This lint checks `std::iter::Empty::default()` and replace with `std::iter::empty()`.
    
    Thank you in advance.
    
    ---
    
    changelog: add `default_instead_of_iter_empty` lint.
    bors committed Jun 17, 2022
    Configuration menu
    Copy the full SHA
    e933bb6 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2022

  1. check macro_backtrace only

    kyoto7250 committed Jun 18, 2022
    Configuration menu
    Copy the full SHA
    f411c18 View commit details
    Browse the repository at this point in the history
  2. check only first statement

    kyoto7250 committed Jun 18, 2022
    Configuration menu
    Copy the full SHA
    7a83809 View commit details
    Browse the repository at this point in the history
  3. check macro in eq_block

    kyoto7250 committed Jun 18, 2022
    Configuration menu
    Copy the full SHA
    040d45e View commit details
    Browse the repository at this point in the history
  4. cargo dev fmt

    kyoto7250 committed Jun 18, 2022
    Configuration menu
    Copy the full SHA
    4a02ae9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a9215d9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    eeedf72 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#98165 - WaffleLapkin:once_things_renamings,…

    … r=m-ou-se
    
    once cell renamings
    
    This PR does the renamings proposed in rust-lang#74465 (comment)
    
    - Move/rename `lazy::{OnceCell, Lazy}` to `cell::{OnceCell, LazyCell}`
    - Move/rename `lazy::{SyncOnceCell, SyncLazy}` to `sync::{OnceLock, LazyLock}`
    
    (I used `Lazy...` instead of `...Lazy` as it seems to be more consistent, easier to pronounce, etc)
    
    ```@rustbot``` label +T-libs-api -T-libs
    matthiaskrgr committed Jun 18, 2022
    Configuration menu
    Copy the full SHA
    4737e9e View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2022

  1. Configuration menu
    Copy the full SHA
    4e7ed42 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9395c26 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ee37029 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2022

  1. Auto merge of rust-lang#9016 - Alexendoo:needless-return-test, r=gira…

    …ffate
    
    Use `RefCell` in `needless_return` tests
    
    changelog: none
    
    The stdio locks no longer fail to compile if the `return` is removed due to them now being `'static` (rust-lang#9008)
    bors committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    9d92af7 View commit details
    Browse the repository at this point in the history
  2. check last statement

    kyoto7250 committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    46d056e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    39ffda0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4a4b5cf View commit details
    Browse the repository at this point in the history
  5. Auto merge of rust-lang#9023 - unvalley:add-meta-tag-for-lint-list, r…

    …=xFrednet
    
    Add description meta tag for lint list
    
    closes rust-lang#8975
    
    changelog:none
    bors committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    195f2cb View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a0b107b View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#9025 - Alexendoo:unused-async-method, r=dswij

    unused_async: lint async methods
    
    Now lints:
    
    ```rust
    impl Foo {
        async fn method(&self) -> &'static str {
            "no await here"
        }
    }
    ```
    
    changelog: [`unused_async`]: lint async methods
    
    Fixes rust-lang#9024
    bors committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    97d4513 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#9006 - kyoto7250:issue-8836-v2, r=Jarcho

    feat(fix): ignore `todo!` and `unimplemented!` in `if_same_then_else`
    
    close: rust-lang#8836
    take over:  rust-lang#8853
    
    This PR adds  check `todo!` and `unimplemented!` in if_same_then_else.
    ( I thought `unimplemented` should not be checked as well as todo!.)
    
    Thank you in advance.
    
    changelog: ignore todo! and unimplemented! in if_same_then_else
    
    r? `@Jarcho`
    bors committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    93c6f9e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    6fc84d4 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2022

  1. Add details about significant drop in match scrutinees causing deadlocks

    Adds more details about how a significant drop in a match scrutinee can
    cause a deadlock and include link to documentation. Emits messages
    indicating temporaries with significant drops in arms of matches and
    message about possible deadlocks/unexpected behavior.
    
    changelog: Add more details to significant drop lint to explicitly show
    how temporaries in match scrutinees can cause deadlocks/unexpected
    behavior.
    PrestonFrom committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    2476100 View commit details
    Browse the repository at this point in the history
  2. For example should be used instead while in WHILE_LET_ON_ITERATOR

    `For` example should be used instead `while` in WHILE_LET_ON_ITERATOR
    
    For example should be used instead while in WHILE_LET_ON_ITERATOR
    
    Revert some changes
    
    Fix cargo dev fmt
    alex-semenyuk committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    dc7f227 View commit details
    Browse the repository at this point in the history
  3. Add dev deprecate

    Serial-ATA committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    2bd1581 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    890fd0e View commit details
    Browse the repository at this point in the history
  5. Implement manual_rem_euclid lint

    Evan Typanski committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    e5ebd3e View commit details
    Browse the repository at this point in the history
  6. Fix case where suggestion errored for infer type

    Evan Typanski committed Jun 21, 2022
    Configuration menu
    Copy the full SHA
    6e1df47 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ab645bb View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2022

  1. Auto merge of rust-lang#9017 - alex-semenyuk:while_let_on_iterator_do…

    …c_fix, r=giraffate
    
    Example for `WHILE_LET_ON_ITERATOR`
    
    changelog: none
    
    example for `WHILE_LET_ON_ITERATOR`, using `for` instead of `while let`
    bors committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    bc0bf06 View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#9030 - Serial-ATA:remove-clippy-dev-dep, r=fl…

    …ip1995
    
    Remove `cargo_dev` dependency
    
    changelog: none
    
    Sorry about that 😅.
    
    r? `@flip1995`
    bors committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    f9fea17 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b969326 View commit details
    Browse the repository at this point in the history
  4. Prefer .ok()? over .unwrap()

    Evan Typanski committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    75ed0c9 View commit details
    Browse the repository at this point in the history
  5. Fix case where rem was considered commutative

    Evan Typanski committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    93e41d3 View commit details
    Browse the repository at this point in the history
  6. Prefer if let chain over macro

    Evan Typanski committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    c8df6d6 View commit details
    Browse the repository at this point in the history
  7. Fix case for function params

    Evan Typanski committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    90f8277 View commit details
    Browse the repository at this point in the history
  8. Add MSRV check for const rem_euclid

    Evan Typanski committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    61e1870 View commit details
    Browse the repository at this point in the history
  9. Simplify with let else

    Evan Typanski committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    0447cc7 View commit details
    Browse the repository at this point in the history
  10. Auto merge of rust-lang#9026 - hellow554:neg_multiply_precedence, r=x…

    …Frednet
    
    put parentheses around neg_multiply suggestion if needed
    
    *Please write a short comment explaining your change (or "none" for internal only changes)*
    
    changelog: [`neg_multiply`]: put parentheses around suggestion if needed
    bors committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    3d366fc View commit details
    Browse the repository at this point in the history
  11. Auto merge of rust-lang#9028 - kyoto7250:issue_8798, r=xFrednet

    confirm  using chain in collapsible_span_lint_calls
    
    close rust-lang#8798
    
    This PR fixes false positive when using chain in `collapsible_span_lint_calls`.
    
    changelog: None
    bors committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    6985e65 View commit details
    Browse the repository at this point in the history
  12. Auto merge of rust-lang#9034 - alex-semenyuk:example_vec_resize_to_ze…

    …ro, r=giraffate
    
    Example for VEC_RESIZE_TO_ZERO
    
    changelog: none
    
    Example for VEC_RESIZE_TO_ZERO - what we should use instead
    bors committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    2cc5211 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2022

  1. Configuration menu
    Copy the full SHA
    87eded6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1f707db View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4182803 View commit details
    Browse the repository at this point in the history
  4. Split constant check functions and simplify

    Evan Typanski committed Jun 23, 2022
    Configuration menu
    Copy the full SHA
    92704b4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ebf77f6 View commit details
    Browse the repository at this point in the history
  6. Add external macro guard and test middle MSRV

    Evan Typanski committed Jun 23, 2022
    Configuration menu
    Copy the full SHA
    df26c3f View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#8953 - DevAccentor:slow_vector_initialization…

    …, r=Manishearth
    
    add vec.capacity() to [`slow_vec_initialization`] detection
    
    fix rust-lang#8800
    
    for example
    ```rust
    let mut vec1 = Vec::with_capacity(len);
    vec1.resize(vec1.capacity(), 0);
    
    let mut vec2 = Vec::with_capacity(len);
    vec2.extend(repeat(0).take(vec2.capacity()));
    ```
    will trigger the lint
    
    ---
    
    changelog: add `vec.capacity()` to [`slow_vec_initialization`] detection
    bors committed Jun 23, 2022
    Configuration menu
    Copy the full SHA
    f718984 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2022

  1. Auto merge of rust-lang#9036 - xFrednet:0000-force-warn-in-driver, r=…

    …dswij
    
    Check for `--force-warn` in Clippy's driver run condition
    
    Just a thing I've noticed while tinkering on the driver. Currently, the driver only checks for `--cap-lints=allow` to determine if Clippy should run on the code, but ignores possible `--force-warn` arguments
    
    ---
    
    changelog: Others: Allowing all lints and only `--force-warn`ing some will now work with Clippy's driver
    bors committed Jun 24, 2022
    Configuration menu
    Copy the full SHA
    3f47cd1 View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#9037 - smoelius:fix-extra-unused-lifetimes-fp…

    …, r=dswij
    
    Fix `extra_unused_lifetimes` false positive
    
    This PR fixes rust-lang#9014.
    
    I confirmed the FP on the `crates.io` source as `@JohnTitor` mentioned, and confirmed that the FP is no longer present following this change.
    
    I did not include a test in this PR because I think constructing one would be complicated, and the fix is pretty simple. But please let me know if this is unacceptable.
    
    changelog: fix `extra_unused_lifetimes` FP
    bors committed Jun 24, 2022
    Configuration menu
    Copy the full SHA
    1d1ae10 View commit details
    Browse the repository at this point in the history
  3. Add test for extra_unused_lifetimes FP on derive

    This commit adds test for a `extra_unused_lifetimes` false positive from derive (rust-lang#9014).
    
    The fix for the FP is introduced in rust-lang#9037.
    dswij committed Jun 24, 2022
    Configuration menu
    Copy the full SHA
    a8f6824 View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#9031 - evantypanski:manual_rem_euclid, r=Jarcho

    Add [`manual_rem_euclid`] lint
    
    Closes rust-lang#8883
    
    Adds a lint for checking manual use of `rem_euclid(n)`
    
    changelog: Add [`manual_rem_euclid`] lint
    bors committed Jun 24, 2022
    Configuration menu
    Copy the full SHA
    e17864e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    aec465c View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2022

  1. Auto merge of rust-lang#9015 - kyoto7250:issue_8493, r=Jarcho

    ignore item in `thread_local!` macro
    
    close rust-lang#8493
    
    This PR ignores `thread_local` macro in `declare_interior_mutable_const`.
    
    changelog: ignore `thread_local!` macro in `declare_interior_mutable_const`
    bors committed Jun 25, 2022
    Configuration menu
    Copy the full SHA
    93ebd0e View commit details
    Browse the repository at this point in the history
  2. Suggest pointer::cast when possible in transmute_ptr_to_ref

    Defensively add a cast to any type with lifetimes.
    Jarcho committed Jun 25, 2022
    Configuration menu
    Copy the full SHA
    7cdaabc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e7c55a4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    811d73a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a3c7101 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b6ee6bb View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b297698 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    54ad99b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    bdc6ece View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    79fc271 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    ae4900c View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    525f5ee View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    6427ba4 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    4d41a97 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    3a31ef7 View commit details
    Browse the repository at this point in the history
  16. Auto merge of rust-lang#8985 - botahamec:single-match-option, r=llogiq

    Lint `[single_match]` on `Option` matches
    
    fixes rust-lang#8928
    
    changelog: did some cleanup of the logic for ``[`single_match`]`` and ``[`single_match_else`]`` which fixes the bug where `Option` matches were not linted unless a wildcard was used for one of the arms.
    bors committed Jun 25, 2022
    Configuration menu
    Copy the full SHA
    8789f4e View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2022

  1. treat argument as a slice.

    Co-authored-by: llogiq <bogusandre@gmail.com>
    kyoto7250 and llogiq committed Jun 26, 2022
    Configuration menu
    Copy the full SHA
    bf317a8 View commit details
    Browse the repository at this point in the history
  2. use all instead of join

    kyoto7250 committed Jun 26, 2022
    Configuration menu
    Copy the full SHA
    d827b83 View commit details
    Browse the repository at this point in the history
  3. STRING_ADD example

    alex-semenyuk committed Jun 26, 2022
    Configuration menu
    Copy the full SHA
    4065702 View commit details
    Browse the repository at this point in the history
  4. STRING_ADD example

    alex-semenyuk committed Jun 26, 2022
    Configuration menu
    Copy the full SHA
    1691914 View commit details
    Browse the repository at this point in the history
  5. update node.js version

    kyoto7250 committed Jun 26, 2022
    Configuration menu
    Copy the full SHA
    11bf291 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#9055 - kyoto7250:update_nodejs_in_github_acti…

    …on, r=Manishearth
    
    update node.js version in `remark.yml`
    
    Optional chain (`?.`) is available in `node v14`, but node version in CI is `node v12`, so CI is failed now.
    
    ref:
    https://github.com/rust-lang/rust-clippy/runs/7059529735?check_suite_focus=true
    
    optional chain:
    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining#browser_compatibility
    
    Corresponding PR (maybe)
    remarkjs/remark#1007
    
    changelog: None
    bors committed Jun 26, 2022
    Configuration menu
    Copy the full SHA
    ab58276 View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#9032 - kyoto7250:issue_9018, r=llogiq

    enum_variant_names should ignore when all prefixes are _
    
    close rust-lang#9018
    
    When Enum prefix is only an underscore, we should not issue warnings.
    
    changelog: fix false positive in enum_variant_names
    bors committed Jun 26, 2022
    Configuration menu
    Copy the full SHA
    9b15062 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5f2b8e6 View commit details
    Browse the repository at this point in the history
  9. Update clippy_lints/src/use_retain.rs

    Co-authored-by: llogiq <bogusandre@gmail.com>
    kyoto7250 and llogiq committed Jun 26, 2022
    Configuration menu
    Copy the full SHA
    b20b8f1 View commit details
    Browse the repository at this point in the history
  10. remove needless return

    kyoto7250 committed Jun 26, 2022
    Configuration menu
    Copy the full SHA
    e3afc72 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3953c53 View commit details
    Browse the repository at this point in the history
  12. check method

    kyoto7250 committed Jun 26, 2022
    Configuration menu
    Copy the full SHA
    fd629c0 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    1421211 View commit details
    Browse the repository at this point in the history
  14. check msrv

    kyoto7250 committed Jun 26, 2022
    Configuration menu
    Copy the full SHA
    4decfde View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    dd3d0fd View commit details
    Browse the repository at this point in the history
  16. fix for git rebase

    kyoto7250 committed Jun 26, 2022
    Configuration menu
    Copy the full SHA
    3a9c0ef View commit details
    Browse the repository at this point in the history
  17. cargo dev update_lints

    kyoto7250 committed Jun 26, 2022
    Configuration menu
    Copy the full SHA
    676af45 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2022

  1. Auto merge of rust-lang#8939 - Jarcho:transmute_ptr_to_ref_lt, r=gira…

    …ffate
    
    Suggest `pointer::cast` when possible in `transmute_ptr_to_ref`
    
    fixes rust-lang#8924
    
    changelog: Suggest casting the pointer for any type containing lifetimes in `transmute_ptr_to_ref`.
    changelog: Suggest `pointer::cast` when possible in `transmute_ptr_to_ref`.
    bors committed Jun 27, 2022
    Configuration menu
    Copy the full SHA
    88da5f2 View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#8871 - Serial-ATA:cargo-dev-deprecate, r=gira…

    …ffate
    
    Add `cargo dev deprecate`
    
    changelog: none
    
    I wrote this awhile ago when `regex` was still a dependency. Is it alright to add it back?
    bors committed Jun 27, 2022
    Configuration menu
    Copy the full SHA
    57e7e1d View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#9054 - alex-semenyuk:string_add_example, r=gi…

    …raffate
    
    STRING_ADD example
    
    changelog: none
    STRING_ADD example, how it should be
    bors committed Jun 27, 2022
    Configuration menu
    Copy the full SHA
    6b762ee View commit details
    Browse the repository at this point in the history
  4. Fix let_undescore_lock false-positive when binding without locking

    Signed-off-by: Klim Tsoutsman <klimusha@gmail.com>
    tsoutsman committed Jun 27, 2022
    Configuration menu
    Copy the full SHA
    65f700f View commit details
    Browse the repository at this point in the history
  5. Auto merge of rust-lang#8990 - tsoutsman:master, r=llogiq

    Fix `let_undescore_lock` false-positive when binding without locking
    
    Fixes rust-lang#8486.
    
    changelog: Fix `let_undescore_lock` false-positive when binding without locking.
    bors committed Jun 27, 2022
    Configuration menu
    Copy the full SHA
    889b361 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#8972 - kyoto7250:use_retain, r=llogiq

    feat(new lint): new lint `manual_retain`
    
    close rust-lang#8097
    
    This PR is  a new  lint implementation.
    This lint checks if the `retain` method is available.
    
    Thank you in advance.
    
    changelog: add new ``[`manual_retain`]`` lint
    bors committed Jun 27, 2022
    Configuration menu
    Copy the full SHA
    eaa03ea View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c6a2221 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2315f76 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c10101c View commit details
    Browse the repository at this point in the history
  10. Auto merge of rust-lang#8649 - ebobrow:imperative_find, r=flip1995

    add [`manual_find`] lint for function return case
    
    part of the implementation discussed in rust-lang#7143
    
    changelog: add [`manual_find`] lint for function return case
    bors committed Jun 27, 2022
    Configuration menu
    Copy the full SHA
    fdd0e72 View commit details
    Browse the repository at this point in the history
  11. Auto merge of rust-lang#9045 - alex-semenyuk:self_assignment_example,…

    … r=llogiq
    
    Fix example `SELF_ASSIGNMENT`
    
    changelog: Fix example in `SELF_ASSIGNMENT` docs
    bors committed Jun 27, 2022
    Configuration menu
    Copy the full SHA
    d855395 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2022

  1. Configuration menu
    Copy the full SHA
    3cfd1e5 View commit details
    Browse the repository at this point in the history
  2. Run cargo dev fmt

    PrestonFrom committed Jun 28, 2022
    Configuration menu
    Copy the full SHA
    7bc4096 View commit details
    Browse the repository at this point in the history
  3. try reading rust-version from Cargo.toml

    Cargo.toml can contain a field `rust-version`, that acts like a MSRV of
    clippy.toml file: https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field
    This will try to read that field and use it, if the clippy.toml config
    has no `msrv` entry
    hellow554 committed Jun 28, 2022
    Configuration menu
    Copy the full SHA
    81737bf View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    83511d1 View commit details
    Browse the repository at this point in the history
  5. parse Cargo.toml file in ui-cargo tests

    compiletest_rs is not meant to test full cargo projects, but instead
    only files.
    So we need to parse the `Cargo.toml` file ourself and set the
    corresponding environment variable. In this case we just set
    `CARGO_PKG_RUST_VERSION`, nothing more. But, of course, this can be
    extended.
    hellow554 committed Jun 28, 2022
    Configuration menu
    Copy the full SHA
    6384765 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f0a1cd5 View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#8639 - Jarcho:trivially_copy_pass_by_ref_5953…

    …, r=dswij
    
    `trivially_copy_pass_by_ref` fixes
    
    fixes rust-lang#5953
    fixes rust-lang#2961
    
    The fix for rust-lang#5953 is overly aggressive, but the suggestion is so bad that it's worth the false negatives. Basically three things together:
    * It's not obviously wrong
    * It compiles
    * It may actually work when tested
    
    changelog: Don't lint `trivially_copy_pass_by_ref` when unsafe pointers are used.
    changelog: Better track lifetimes when linting `trivially_copy_pass_by_ref`.
    bors committed Jun 28, 2022
    Configuration menu
    Copy the full SHA
    373bb57 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#8774 - hellow554:cargo-rust-version, r=flip1995

    try reading rust-version from Cargo.toml
    
    Cargo.toml can contain a field `rust-version`, that acts like a MSRV of
    clippy.toml file: https://doc.rust-lang.org/cargo/reference/manifest.html#the-rust-version-field
    This will try to read that field and use it, if the clippy.toml config
    has no `msrv` entry
    
    changelog: respect `rust-version` from `Cargo.toml`
    
    closes rust-lang#8746
    closes rust-lang#7765
    bors committed Jun 28, 2022
    Configuration menu
    Copy the full SHA
    b776fb8 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d11618e View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    c107c97 View commit details
    Browse the repository at this point in the history
  11. Add explicit_auto_deref lint

    Jarcho committed Jun 28, 2022
    Configuration menu
    Copy the full SHA
    8a74d33 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    ee532c0 View commit details
    Browse the repository at this point in the history
  13. Merge different parent walking loops in dereference.rs

    `needless_borrow` will now walk further to find the target type.
    Jarcho committed Jun 28, 2022
    Configuration menu
    Copy the full SHA
    a187d64 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    20ea262 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    442a68c View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    65bc6cb View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    0204b95 View commit details
    Browse the repository at this point in the history
  18. Refactor dereference.rs

    Merge `Position` and `AutoDerefStability`
    Jarcho committed Jun 28, 2022
    Configuration menu
    Copy the full SHA
    0b4ba73 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    6d21b79 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    9788107 View commit details
    Browse the repository at this point in the history
  21. Code cleanup

    Jarcho committed Jun 28, 2022
    Configuration menu
    Copy the full SHA
    15df228 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    85c1f74 View commit details
    Browse the repository at this point in the history
  23. Add Operators lint pass

    Jarcho committed Jun 28, 2022
    Configuration menu
    Copy the full SHA
    dd78ce7 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    448b6f4 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    751131b View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    68a7fd2 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    4ac3626 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    732d716 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    0adb3c0 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    3de70a4 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    56f50d3 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    83de67c View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    a8df16a View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    c0b0ee5 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    71c2daa View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    fc5eac5 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    92891a0 View commit details
    Browse the repository at this point in the history
  38. Fix dogfood

    Jarcho committed Jun 28, 2022
    Configuration menu
    Copy the full SHA
    5e2a2d3 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    ffbba85 View commit details
    Browse the repository at this point in the history
  40. Auto merge of rust-lang#8921 - Jarcho:merge_passes, r=llogiq

    Add `Operators` lint pass
    
    changelog: None
    bors committed Jun 28, 2022
    Configuration menu
    Copy the full SHA
    23c6765 View commit details
    Browse the repository at this point in the history
  41. Auto merge of rust-lang#8355 - Jarcho:explicit_auto_deref_2, r=flip1995

    Add lint `explicit_auto_deref` take 2
    
    fixes: rust-lang#234
    fixes: rust-lang#8367
    fixes: rust-lang#8380
    
    Still things to do:
    
    * ~~This currently only lints `&*<expr>` when it doesn't trigger `needless_borrow`.~~
    * ~~This requires a borrow after a deref to trigger. So `*<expr>` changing `&&T` to `&T` won't be caught.~~
    * The `deref` and `deref_mut` trait methods aren't linted.
    * Neither ~~field accesses~~, nor method receivers are linted.
    * ~~This probably shouldn't lint reborrowing.~~
    * Full slicing to deref should probably be handled here as well. e.g. `&vec[..]` when just `&vec` would do
    
    changelog: new lint `explicit_auto_deref`
    bors committed Jun 28, 2022
    Configuration menu
    Copy the full SHA
    a4130e1 View commit details
    Browse the repository at this point in the history
  42. Auto merge of rust-lang#9046 - xFrednet:rust-97660-expection-somethin…

    …g-something, r=Jarcho
    
    Fix `#[expect]` for most clippy lints
    
    This PR fixes most `#[expect]` - lint interactions listed in rust-lang#97660. [My comment in the issue](rust-lang#97660 (comment)) shows the current progress (Once this is merged). I plan to work on `duplicate_mod` and `multiple_inherent_impl` and leave the rest for later. I feel like stabilizing the feature is more important than fixing the last few nits, which currently also don't work with `#[allow]`.
    
    ---
    
    changelog: none
    
    r? `@Jarcho`
    
    cc: rust-lang#97660
    bors committed Jun 28, 2022
    Configuration menu
    Copy the full SHA
    4995b4e View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2022

  1. Auto merge of rust-lang#8981 - PrestonFrom:more_details_for_significa…

    …nt_drop_lint, r=flip1995
    
    Add details about how significant drop in match scrutinees can cause deadlocks
    
    Adds more details about how a significant drop in a match scrutinee can cause a deadlock and include link to documentation.
    
    changelog: Add more details to significant drop lint to explicitly show how temporaries in match scrutinees can cause deadlocks.
    bors committed Jun 29, 2022
    Configuration menu
    Copy the full SHA
    90227c1 View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#9043 - dswij:9037-test, r=Manishearth

    `extra_unused_lifetimes` add FP test case emitting from derived attributes.
    
    Add test to cover for rust-lang#9014 which is fixed in rust-lang#9037.
    
    changelog: [`extra_unused_lifetimes`] Add FP test case emitting from derived attributes.
    
    ---
    
    Seeing the FP from the test:
    
    ```sh
    $ git revert -m 1 1d1ae10
    $ TESTNAME=extra_unused_lifetime cargo uitest
    ```
    bors committed Jun 29, 2022
    Configuration menu
    Copy the full SHA
    70f1d0d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    58434ae View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    adbc849 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2022

  1. fix

    tamaroning committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    5d75a9b View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#8666 - Jarcho:while_let_loop_7913, r=dswij

    Don't lint `while_let_loop` when significant drop order would change
    
    fixes rust-lang#7226
    fixes rust-lang#7913
    fixes rust-lang#5717
    
    For rust-lang#5717 it may not stay fully fixed. This is only completely fixed right now due to all the allowed drop impls have `#[may_dangle]` on their drop impls. This may get changed in the future based on how significant drops are determined, but the example listed with `RefCell` shouldn't break.
    
    changelog: Don't lint `while_let_loop` when the order of significant drops would change
    bors committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    88591ba View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5d9e1b6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ff3964a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f26cf11 View commit details
    Browse the repository at this point in the history
  6. Fix dogfood

    flip1995 committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    bf9b39a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d9b2e21 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9de1f9f View commit details
    Browse the repository at this point in the history
  9. Auto merge of rust-lang#9069 - flip1995:rustup, r=flip1995

    Rustup
    
    r? `@ghost`
    
    changelog: none
    bors committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    0cb0f76 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    721d53a View commit details
    Browse the repository at this point in the history
  11. Update Cargo.lock

    flip1995 committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    5fead7a View commit details
    Browse the repository at this point in the history