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 9 pull requests #122850

Closed
wants to merge 166 commits into from
Closed

Commits on Feb 24, 2024

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

Commits on Feb 26, 2024

  1. Configuration menu
    Copy the full SHA
    dbfbd0e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    89b334d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2884970 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1159e2c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    898ed88 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2024

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

Commits on Mar 7, 2024

  1. Configuration menu
    Copy the full SHA
    865ac89 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a9858da View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7e83df4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    43f4ec3 View commit details
    Browse the repository at this point in the history
  5. [use_self]: Make it aware of lifetimes

    Have the lint trigger even if `Self` has generic lifetime parameters.
    
    ```rs
    impl<'a> Foo<'a> {
        type Item = Foo<'a>; // Can be replaced with Self
    
        fn new() -> Self {
            Foo { // No lifetime, but they are inferred to be that of Self
                  // Can be replaced as well
                ...
            }
        }
    
        // Don't replace `Foo<'b>`, the lifetime is different!
        fn eq<'b>(self, other: Foo<'b>) -> bool {
            ..
        }
    ```
    
    Fixes rust-lang#12381
    Ethiraric committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    f3879b3 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2024

  1. Configuration menu
    Copy the full SHA
    3a6cac7 View commit details
    Browse the repository at this point in the history
  2. Merge from rustc

    The Miri Cronjob Bot committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    55b757e View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#119365 - nbdd0121:asm-goto, r=Amanieu

    Add asm goto support to `asm!`
    
    Tracking issue: rust-lang#119364
    
    This PR implements asm-goto support, using the syntax described in "future possibilities" section of [RFC2873](https://rust-lang.github.io/rfcs/2873-inline-asm.html#asm-goto).
    
    Currently I have only implemented the `label` part, not the `fallthrough` part (i.e. fallthrough is implicit). This doesn't reduce the expressive though, since you can use label-break to get arbitrary control flow or simply set a value and rely on jump threading optimisation to get the desired control flow. I can add that later if deemed necessary.
    
    r? ``@Amanieu``
    cc ``@ojeda``
    matthiaskrgr authored Mar 8, 2024
    Configuration menu
    Copy the full SHA
    1572279 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    adc91e4 View commit details
    Browse the repository at this point in the history
  5. Auto merge of rust-lang#12433 - J-ZhengLi:issue12197, r=dswij

    fix [`missing_docs_in_private_items`] on some proc macros
    
    fixes: rust-lang#12197
    
    ---
    
    changelog: [`missing_docs_in_private_items`] support manually search for docs as fallback method
    bors committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    0b4b684 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#121194 - beetrees:rustc-raw-args, r=petroch…

    …enkov
    
    Refactor pre-getopts command line argument handling
    
    Rebased version of rust-lang#111658. I've also fixed the Windows CI failure (although I don't have access to Windows to test it myself).
    matthiaskrgr authored Mar 8, 2024
    Configuration menu
    Copy the full SHA
    1bd7383 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    158b70a View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2024

  1. Configuration menu
    Copy the full SHA
    2dd085f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4e95b4a View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#118879 - Nadrieril:lint-range-gap, r=estebank

    Lint singleton gaps after exclusive ranges
    
    In the discussion to stabilize exclusive range patterns (rust-lang#37854), it has often come up that they're likely to cause off-by-one mistakes. We already have the `overlapping_range_endpoints` lint, so I [proposed](rust-lang#37854 (comment)) a lint to catch the complementary mistake.
    
    This PR adds a new `non_contiguous_range_endpoints` lint that catches likely off-by-one errors with exclusive range patterns. Here's the idea (see the test file for more examples):
    ```rust
    match x {
        0..10 => ..., // WARN: this range doesn't match `10_u8` because `..` is an exclusive range
        11..20 => ..., // this could appear to continue range `0_u8..10_u8`, but `10_u8` isn't matched by either of them
        _ => ...,
    }
    // help: use an inclusive range instead: `0_u8..=10_u8`
    ```
    
    More precisely: for any exclusive range `lo..hi`, if `hi+1` is matched by another range but `hi` isn't, we suggest writing an inclusive range `lo..=hi` instead. We also catch `lo..T::MAX`.
    bors committed Mar 9, 2024
    Configuration menu
    Copy the full SHA
    6890407 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7473f05 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8d78cd1 View commit details
    Browse the repository at this point in the history
  6. Merge from rustc

    The Miri Cronjob Bot committed Mar 9, 2024
    Configuration menu
    Copy the full SHA
    4d15a75 View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#12310 - samueltardieu:issue-12307, r=xFrednet

    New lint `const_is_empty`
    
    This lint detects calls to `.is_empty()` on an entity initialized from a string literal and flag them as suspicious. To avoid triggering on macros called from generated code, it checks that the `.is_empty()` receiver, the call itself and the initialization come from the same context.
    
    Fixes rust-lang#12307
    
    changelog: [`const_is_empty`]: new lint
    bors committed Mar 9, 2024
    Configuration menu
    Copy the full SHA
    453242c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f34804d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    749e225 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    d57d001 View commit details
    Browse the repository at this point in the history
  11. Update ui tests

    GuillaumeGomez committed Mar 9, 2024
    Configuration menu
    Copy the full SHA
    ae52a9d View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    fa4e3aa View commit details
    Browse the repository at this point in the history
  13. Auto merge of rust-lang#12443 - cookie-s:noeffectreoplace-fix-dup-dia…

    …gs, r=Alexendoo
    
    [`no_effect_replace`]: Fix duplicate diagnostics
    
    Relates to rust-lang#12379
    
    Fixes `no_effect_replace` duplicate diagnostics
    
    ---
    
    changelog: [`no_effect_replace`]: Fix duplicate diagnostics
    bors committed Mar 9, 2024
    Configuration menu
    Copy the full SHA
    099e2c0 View commit details
    Browse the repository at this point in the history
  14. Auto merge of rust-lang#12442 - cookie-s:fix-mutmut-duplicate-diags, …

    …r=y21
    
    [`mut_mut`]: Fix duplicate diags
    
    Relates to rust-lang#12379
    
    The `mut_mut` lint produced two diagnostics for each `mut mut` pattern in `ty` inside  `block`s because `MutVisitor::visit_ty` was called from `MutMut::check_ty` and  `MutMut::check_block` independently. This PR fixes the issue.
    
    ---
    
    changelog: [`mut_mut`]: Fix duplicate diagnostics
    bors committed Mar 9, 2024
    Configuration menu
    Copy the full SHA
    b2f9c4c View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    ced8bc5 View commit details
    Browse the repository at this point in the history
  16. Auto merge of rust-lang#12446 - y21:check_fn_span_lint, r=xFrednet

    use `span_lint_hir` instead of `span_lint` in more lints
    
    Decided to grep for `check_(fn|block)` and look where `span_lint` is used, since some lints lint will then emit a lint on a statement or expression in that function, which would use the wrong lint level attributes
    
    The `LintContext` keeps track of the last entered HIR node that had any attributes, and uses those (and its parents) for figuring out the lint level when a lint is emitted
    
    However, this only works when we actually emit a lint at the same node as the `check_*` function we are in.
    If we're in `check_fn` and we emit a lint on a statement within that function, then there is no way to allow the lint only for that one statement (if `span_lint` is used). It would only count allow attributes on the function
    
    changelog: [`needless_return`]: [`useless_let_if_seq`]: [`mut_mut`]: [`read_zero_byte_vec`]: [`unused_io_amount`]: [`unused_peekable`]: now respects `#[allow]` attributes on the affected statement instead of only on the enclosing block or function
    bors committed Mar 9, 2024
    Configuration menu
    Copy the full SHA
    c173ea6 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    b44ab66 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    eb5ce85 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    0e59259 View commit details
    Browse the repository at this point in the history
  20. fix example code

    Jacherr committed Mar 9, 2024
    Configuration menu
    Copy the full SHA
    0c82fd0 View commit details
    Browse the repository at this point in the history
  21. Auto merge of rust-lang#12449 - Jacherr:issue-6439, r=llogiq

    Add new lint `zero_repeat_side_effects`
    
    Fixes rust-lang/rust-clippy#6439
    
    Adds a new `suspicious` lint zero_repeat_side_effects. This lint warns the user when initializing an array or `Vec` using the `Repeat` syntax, i.e., `[x; y]`. If `x` is an `Expr::Call/MethodCall` or contains an `Expr::Call/MethodCall` and `y` is zero, then there is a chance that the internal call can produce side effects, such as printing to console, which is not very obvious.
    
    This lint warns against this and instead suggests to separate out the function call and the array/Vec initialization.
    
    changelog: Add new lint `zero_repeat_side_effects`
    bors committed Mar 9, 2024
    Configuration menu
    Copy the full SHA
    d8a9068 View commit details
    Browse the repository at this point in the history
  22. Auto merge of rust-lang#12447 - MarcusGrass:mg/fix-12438-regression, …

    …r=y21
    
    Fix rust-lang#12438 std_instead_of_core regression
    
    Fixes rust-lang#12438.
    
    Boy-scouting removed two paths that checks for duplication since I thought they were unused. However, that's just because I didn't spot it in the diff.
    
    I installed [difftastic](https://github.com/Wilfred/difftastic) and ran it on the old one:
    
    ![image](https://github.com/rust-lang/rust-clippy/assets/34198073/5c51276c-055a-49a3-9425-6f7da0590fb0)
    
    And the new one (fixed):
    
    ![image](https://github.com/rust-lang/rust-clippy/assets/34198073/6e10f29c-6d6b-4f64-893f-de526424f1cd)
    
    New one (stderr):
    ![image](https://github.com/rust-lang/rust-clippy/assets/34198073/c4c07776-ee0f-47ba-996f-6b632de47c81)
    
    Good teachings for the future when inspecting diffs with a lot of line changes, should've thought of that before, sorry for the trouble!
    
    changelog: [`std_instead_of_core`] Fix false positive for crates that are in `std` but not `core`
    bors committed Mar 9, 2024
    Configuration menu
    Copy the full SHA
    7ee75f8 View commit details
    Browse the repository at this point in the history
  23. apply review suggestions

    y21 committed Mar 9, 2024
    Configuration menu
    Copy the full SHA
    5b1f95c View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    a92037f View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2024

  1. Configuration menu
    Copy the full SHA
    1abf441 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fadb254 View commit details
    Browse the repository at this point in the history
  3. Update ui test

    GuillaumeGomez committed Mar 10, 2024
    Configuration menu
    Copy the full SHA
    b0f358f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    98ac5f1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ed6e629 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#121662 - saethlin:precondition-unification, r…

    …=RalfJung
    
    Distinguish between library and lang UB in assert_unsafe_precondition
    
    As described in rust-lang#121583 (comment), `assert_unsafe_precondition` now explicitly distinguishes between language UB (conditions we explicitly optimize on) and library UB (things we document you shouldn't do, and maybe some library internals assume you don't do).
    
    `debug_assert_nounwind` was originally added to avoid the "only at runtime" aspect of `assert_unsafe_precondition`. Since then the difference between the macros has gotten muddied. This totally revamps the situation.
    
    Now _all_ preconditions shall be checked with `assert_unsafe_precondition`. If you have a precondition that's only checkable at runtime, do a `const_eval_select` hack, as done in this PR.
    
    r? RalfJung
    bors committed Mar 10, 2024
    Configuration menu
    Copy the full SHA
    45f87a0 View commit details
    Browse the repository at this point in the history
  7. Merge from rustc

    The Miri Cronjob Bot committed Mar 10, 2024
    Configuration menu
    Copy the full SHA
    6d80398 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#122246 - RalfJung:miri, r=RalfJung

    Miri subtree update
    
    r? `@ghost`
    
    `@WaffleLapkin` when this lands, setting `MIRI_TEMP` should not be needed any more on the dev desktops.
    bors committed Mar 10, 2024
    Configuration menu
    Copy the full SHA
    1847904 View commit details
    Browse the repository at this point in the history
  9. Auto merge of rust-lang#12440 - GuillaumeGomez:add-match_option_and_d…

    …efault, r=llogiq
    
    Add new `manual_unwrap_or_default` lint
    
    This adds a new lint checking if a `match` or a `if let` can be replaced with `unwrap_or_default`.
    
    ----
    
    changelog: Add new [`manual_unwrap_or_default`] lint
    bors committed Mar 10, 2024
    Configuration menu
    Copy the full SHA
    81debac View commit details
    Browse the repository at this point in the history
  10. Auto merge of rust-lang#12445 - y21:document-diagnostic-utils, r=xFre…

    …dnet
    
    add documentation to the `span_lint_hir` functions
    
    As far as I could tell, these weren't documented anywhere, and since this is sometimes needed over `span_lint` for `#[allow]` attrs to work, I thought I would add a little bit of documentation.
    When I started with clippy development, I also had no idea what these functions were for.
    
    changelog: none
    bors committed Mar 10, 2024
    Configuration menu
    Copy the full SHA
    86717f2 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6c863bc View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    8e55bbf View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    9c51fd9 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2024

  1. Auto merge of rust-lang#12458 - hamirmahal:refactor/readability-impro…

    …vement, r=dswij
    
    [`seek_from_current`]: readability improvements
    
    fixes rust-lang#12457.
    
    ---
    
    *Please write a short comment explaining your change (or "none" for internal only changes)*
    
    changelog: [`seek_from_current`]: readability improvements
    bors committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    02156dc View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#12448 - WeiTheShinobi:fix_single_match, r=dswij

    [`single_match`]: Fix duplicate diagnostics
    
    Relates to rust-lang#12379
    
    edit two test file
    `tests/ui/single_match_else.rs`
    `tests/ui/single_match.rs`
    
    those two test file point to the same lint
    
    ---
    
    changelog: [`single_match`] Fix duplicate diagnostics
    bors committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    6ff4e71 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#12430 - sanxiyn:direct-minimal-versions, r=Al…

    …exendoo
    
    Fix dependency specifications
    
    As Clippy lacks `Cargo.lock`, it makes sense to test its dependency specifications with [direct-minimal-versions](https://doc.rust-lang.org/cargo/reference/unstable.html#direct-minimal-versions). This can be done with the following addition to `.cargo/config.toml`.
    
    ```toml
    [unstable]
    direct-minimal-versions = true
    ```
    
    * `tempfile` 3.3 is required by `clippy_lints`.
    * `regex` 1.5.5 is required by `ui_test` 0.22.2.
    * `quote` 1.0.25 is required by `syn` 2.0.0.
    * `serde` 1.0.145 is required by `toml` 0.7.3.
    
    changelog: none
    bors committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    870e016 View commit details
    Browse the repository at this point in the history
  4. Fix typo in section '6.10. Macro Expansions' of the Clippy Book

    The struct returned by the `Span::ctxt` method was listed as
    `SpanContext`. The correct struct is currently named `SyntaxContext`.
    CBSpeir committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    d66a0ec View commit details
    Browse the repository at this point in the history
  5. Auto merge of rust-lang#12378 - GuillaumeGomez:duplicated_attr, r=bly…

    …xyas
    
    Add new `duplicated_attributes` lint
    
    It's a lint idea that `@llogiq` gave me while reviewing another PR.
    
    There are some limitations, in particular for the "output". Initially I wanted to make it possible for directly lint against the whole attribute if its parts were all duplicated, but then I realized that the output would be chaotic if the duplicates were coming from different attributes, so I preferred to go to the simplest way and simply emit a warning for each entry. Not the best, but makes the implementation much easier.
    
    Another limitation is that `cfg_attr` would be a bit more tricky to implement because we need to check if two `cfg` sets are exactly the same. I added a FIXME and will likely come back to it later.
    
    And finally, I updated the `cargo dev update_lints` command because the generated `tests/ui/rename.rs` file was emitting the `duplicated_attributes` lint, so I allowed this lint inside it to prevent it from working.
    
    changelog: Add new `duplicated_attributes` lint
    bors committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    f685a4b View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#12452 - CBSpeir:dedup-manual-retain, r=blyxyas

    [`manual_retain`]: Fix duplicate diagnostics
    
    Relates to: rust-lang#12379
    
    The first lint guard executed in `LateLintPass::check_expr` was testing if the parent was of type `ExprKind::Assign`.  This meant the lint emitted on both sides of the assignment operator when `check_expr` is called on either `Expr`.  The guard in the fix only lints once when the `Expr` is of kind `Assign`.
    
    changelog:  Fix duplicate lint diagnostic emission from [`manual_retain`]
    bors committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    e22ca03 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    100ab49 View commit details
    Browse the repository at this point in the history
  8. update_lints

    Jacherr committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    edcf10e View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2024

  1. Configuration menu
    Copy the full SHA
    10677d6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3cd6fd1 View commit details
    Browse the repository at this point in the history
  3. Merge from rustc

    The Miri Cronjob Bot committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    25fb1f0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b205192 View commit details
    Browse the repository at this point in the history
  5. Add nested bool to DefKind::Static.

    Will be used in the next commit
    oli-obk committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    013bf92 View commit details
    Browse the repository at this point in the history
  6. s/mt/mutability/

    oli-obk committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    97f2ade View commit details
    Browse the repository at this point in the history
  7. chore: fix some typos

    Signed-off-by: pavedroad <qcqs@outlook.com>
    pavedroad committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    f472b50 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    27c49e1 View commit details
    Browse the repository at this point in the history
  9. Auto merge of rust-lang#12462 - CBSpeir:clippy-book-typo, r=flip1995

    Fix typo in section '6.10. Macro Expansions' of the Clippy Book
    
    Under the "Span.ctxt method" heading in *Section 6.10. Macro Expansions* of the *Clippy Book*, the type returned by the
    `Span::ctxt` method is listed as `SpanContext`.  The correct type name should be `SyntaxContext`.
    
    ---
    
    changelog: Fixed typo in "Section 6.10. Macro Expansions" of the Clippy Book. `SpanContext` changed to `SyntaxContext`.
    bors committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    60f7f06 View commit details
    Browse the repository at this point in the history
  10. Auto merge of rust-lang#12417 - Alexendoo:iter-nth, r=flip1995

    Move `iter_nth` to `style`, add machine applicable suggestion
    
    There's no `O(n)` involved with `.iter().nth()` on the linted types since the iterator implementations provide `nth` and/or `advance_by` that operate in `O(1)`
    
    For slice iterators the codegen is equivalent, `VecDeque`'s iterator seems to codegen differently but that doesn't seem significant enough to keep it as a perf lint
    
    changelog: [`iter_nth`] Move to `style`
    
    r? `@flip1995`
    bors committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    a8a7371 View commit details
    Browse the repository at this point in the history
  11. Auto merge of rust-lang#12469 - pavedroad:master, r=y21

    chore: fix some typos
    
    Thank you for making Clippy better!
    
    We're collecting our changelog from pull request descriptions.
    If your PR only includes internal changes, you can just write
    `changelog: none`. Otherwise, please write a short comment
    explaining your change.
    
    It's also helpful for us that the lint name is put within backticks (`` ` ` ``),
    and then encapsulated by square brackets (`[]`), for example:
    ```
    changelog: [`lint_name`]: your change
    ```
    
    If your PR fixes an issue, you can add `fixes #issue_number` into this
    PR description. This way the issue will be automatically closed when
    your PR is merged.
    
    If you added a new lint, here's a checklist for things that will be
    checked during review or continuous integration.
    
    - \[x] Followed [lint naming conventions][lint_naming]
    - \[ ] Added passing UI tests (including committed `.stderr` file)
    - \[ ] `cargo test` passes locally
    - \[ ] Executed `cargo dev update_lints`
    - \[ ] Added lint documentation
    - \[x] Run `cargo dev fmt`
    
    [lint_naming]: https://rust-lang.github.io/rfcs/0344-conventions-galore.html#lints
    
    Note that you can skip the above if you are just opening a WIP PR in
    order to get feedback.
    
    Delete this line and everything above before opening your PR.
    
    ---
    
    *Please write a short comment explaining your change (or "none" for internal only changes)*
    
    changelog:
    bors committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    3a14911 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    244d7da View commit details
    Browse the repository at this point in the history
  13. Auto merge of rust-lang#11287 - Centri3:rust-lang#11285, r=llogiq

    [`cast_lossless`]: Suggest type alias instead of the aliased type
    
    Fixes rust-lang#11285
    
    Still an issue with the "from" side, i.e., `I8::from(1) as I64` shows as `i8 to I64`, but this should be ok. Not possible to reliably fix currently anyway.
    
    changelog: [`cast_lossless`]: Suggest type alias instead of the aliased type
    bors committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    92ca7c9 View commit details
    Browse the repository at this point in the history
  14. Auto merge of rust-lang#12466 - J-ZhengLi:issue12377, r=blyxyas

    fix [`empty_docs`] trigger in proc-macro
    
    fixes: rust-lang#12377
    
    ---
    
    changelog: fix [`empty_docs`] trigger in proc-macros
    bors committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    99e8000 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2024

  1. Configuration menu
    Copy the full SHA
    65defdb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    11c2bad View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#12459 - y21:unconditional_recursion_from_into…

    …, r=Jarcho
    
    lint when calling the blanket `Into` impl from a `From` impl
    
    Closes rust-lang#11150
    ```
    warning: function cannot return without recursing
      --> x.rs:9:9
       |
    9  | /         fn from(value: f32) -> Self {
    10 | |             value.into()
    11 | |         }
       | |_________^
       |
    note: recursive call site
      --> x.rs:10:13
       |
    10 |             value.into()
       |             ^^^^^^^^^^^^
    ```
    
    I'm also thinking that we can probably generalize this lint to rust-lang#11032 at some point (instead of hardcoding a bunch of impls), like how rustc's `unconditional_recursion` works, at least up to one indirect call, but this still seems useful for now :)
    
    I've also noticed that we use `fn_def_id` in a bunch of lints and then try to get the node args of the call in a separate step, so I made a helper function that does both in one. I intend to refactor a bunch of uses of `fn_def_id` to use this later
    
    I can add more test cases, but this is already using much of the same logic that exists for the other impls that this lint looks for (e.g. making sure that there are no conditional returns).
    
    changelog: [`unconditional_recursion`]: emit a warning inside of `From::from` when unconditionally calling the blanket `.into()` impl
    bors committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    73be486 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    11759d1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cd36b25 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    03d7ae8 View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#12470 - sanxiyn:filetime, r=Alexendoo

    filetime::FileTime::now() is new in 0.2.9
    
    Clippy makes a use of `filetime::FileTime::now()`, which is new in `filetime` 0.2.9.
    
    changelog: none
    bors committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    660b058 View commit details
    Browse the repository at this point in the history
  8. [unused_enumerate_index]: trigger on method calls

    The lint used to check for patterns looking like:
    ```rs
    for (_, x) in some_iter.enumerate() {
        // Index is ignored
    }
    ```
    
    This commit further checks for chained method calls constructs where we
    can detect that the index is unused. Currently, this checks only for the
    following patterns:
    ```rs
    some_iter.enumerate().map_function(|(_, x)| ..)
    let x = some_iter.enumerate();
    x.map_function(|(_, x)| ..)
    ```
    where `map_function` is one of `all`, `any`, `filter_map`, `find_map`,
    `flat_map`, `for_each` or `map`.
    
    Fixes rust-lang#12411.
    Ethiraric committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    7cdeac5 View commit details
    Browse the repository at this point in the history
  9. move readonly_write_lock to perf

    y21 committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    adcbb4a View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2024

  1. Configuration menu
    Copy the full SHA
    1fe8844 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0535f55 View commit details
    Browse the repository at this point in the history
  3. checks dbg inside other macros as well (but no ext macro);

    some refractoring;
    J-ZhengLi committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    fe4e0ac View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    20e4c74 View commit details
    Browse the repository at this point in the history
  5. Fix logic

    maekawatoshiki committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    560a5a8 View commit details
    Browse the repository at this point in the history
  6. Fix conflict

    maekawatoshiki committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    c5d3b62 View commit details
    Browse the repository at this point in the history
  7. Simplify logic

    maekawatoshiki committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    5f8d8f1 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#12282 - maekawatoshiki:fix, r=xFrednet

    Handle false positive with `map_clone` lint
    
    ### Summary
    
    - Fixes rust-lang/rust-clippy#12271
    - (This is my first contribution to clippy and any suggestion would be appreciated)
    
    changelog: [`map_clone`]: Handle false positive with `map_clone` lint
    bors committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    a75e271 View commit details
    Browse the repository at this point in the history
  9. Auto merge of rust-lang#12477 - Kobzol:ci-concurrency-group, r=flip1995

    CI: replace `cancel-outdated-builds` with `concurrency` group
    
    This is the last remaining [usage](https://github.com/search?q=org%3Arust-lang%20cancel-outdated-builds&type=code) of the [cancel-outdated-builds](https://github.com/rust-lang/simpleinfra/tree/master/github-actions/cancel-outdated-builds) CI action. Which means that if we remove its usage, we can remove the code of the action :)
    
    This action was replaced in `rust-lang/rust` with the native Github Actions `concurrency` group [last year](rust-lang#112955).
    
    Note that unlike `rust-lang/rust`, which explicitly allows parallel try builds, `clippy` did not allow them, as all steps of the `clippy_bors.yaml` workflow used the `cancel-outdated-builds` action, regardless of the branch. So the new `concurrency` group mirrors that, which makes it a bit simpler than on `rust-lang/rust`.
    
    changelog: none
    
    r? `@Mark-Simulacrum`
    bors committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    e77d7a3 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    da2795f View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    0e2897f View commit details
    Browse the repository at this point in the history
  12. Merge from rustc

    The Miri Cronjob Bot committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    22577e5 View commit details
    Browse the repository at this point in the history
  13. Auto merge of rust-lang#12386 - Ethiraric:fix-12381, r=blyxyas

    [`use_self`]: Make it aware of lifetimes
    
    Have the lint trigger even if `Self` has generic lifetime parameters.
    
    ```rs
    impl<'a> Foo<'a> {
        type Item = Foo<'a>; // Can be replaced with Self
    
        fn new() -> Self {
            Foo { // No lifetime, but they are inferred to be that of Self
                  // Can be replaced as well
                ...
            }
        }
    
        // Don't replace `Foo<'b>`, the lifetime is different!
        fn eq<'b>(self, other: Foo<'b>) -> bool {
            ..
        }
    ```
    
    Fixes rust-lang#12381
    
    *Please write a short comment explaining your change (or "none" for internal only changes)*
    
    changelog: [`use_self`]: Have the lint trigger even if `Self` has generic lifetime parameters
    bors committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    8a78128 View commit details
    Browse the repository at this point in the history
  14. hir: Remove opt_local_def_id_to_hir_id and opt_hir_node_by_def_id

    Also replace a few `hir_node()` calls with `hir_node_by_def_id()`
    petrochenkov committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    f55a049 View commit details
    Browse the repository at this point in the history
  15. Auto merge of rust-lang#12472 - GuillaumeGomez:fix-10262, r=blyxyas

    Don't emit `doc_markdown` lint for missing backticks if it's inside a quote
    
    Fixes rust-lang#10262.
    
    changelog: Don't emit `doc_markdown` lint for missing backticks if it's inside a quote
    bors committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    b667d02 View commit details
    Browse the repository at this point in the history
  16. [unused_enumerate_index]: Keep explicit element type

    Prior to this change, it might be that the lint would remove an explicit
    type that was necessary for the type system to keep track of types.
    
    This should be the last change that prevented this lint to be machine
    applicable.
    Ethiraric committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    dadcd94 View commit details
    Browse the repository at this point in the history
  17. Auto merge of rust-lang#12432 - Ethiraric:fix-12411, r=y21

    [`unused_enumerate_index`]: trigger on method calls
    
    The lint used to check for patterns looking like:
    ```rs
    for (_, x) in some_iter.enumerate() {
        // Index is ignored
    }
    ```
    
    This commit further checks for chained method calls constructs where we
    can detect that the index is unused. Currently, this checks only for the
    following patterns:
    ```rs
    some_iter.enumerate().map_function(|(_, x)| ..)
    let x = some_iter.enumerate();
    x.map_function(|(_, x)| ..)
    ```
    where `map_function` is one of `all`, `any`, `filter_map`, `find_map`,
    `flat_map`, `for_each` or `map`.
    
    Fixes rust-lang#12411.
    
    *Please write a short comment explaining your change (or "none" for internal only changes)*
    
    changelog: [`unused_enumerate_index`]: add detection for method chains such as `iter.enumerate().map(|(_, x)| x)`
    bors committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    5a11fef View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2024

  1. Configuration menu
    Copy the full SHA
    d3f8f3e View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#122513 - petrochenkov:somehir4, r=fmease

    hir: Remove `opt_local_def_id_to_hir_id` and `opt_hir_node_by_def_id`
    
    Also replace a few `hir_node()` calls with `hir_node_by_def_id()`.
    
    Follow up to rust-lang#120943.
    GuillaumeGomez authored Mar 15, 2024
    Configuration menu
    Copy the full SHA
    1e30c29 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#12493 - y21:issue12491, r=Alexendoo

    fix span calculation for non-ascii in `needless_return`
    
    Fixes rust-lang#12491
    
    Probably fixes rust-lang#12328 as well, but that one has no reproducer, so 🤷
    
    The bug was that the lint used `rfind()` for finding the byte index of the start of the previous non-whitespace character:
    ```
    // abc\n     return;
         ^
    ```
    ... then subtracting one to get the byte index of the actual whitespace (the `\n` here).
    (Subtracting instead of adding because it treats this as the length from the `return` token to the `\n`)
    
    That's correct for ascii, like here, and will get us to the `\n`, however for non ascii, the `c` could be multiple bytes wide, which would put us in the middle of a codepoint if we simply subtract 1 and is what caused the ICE.
    
    There's probably a lot of ways we could fix this.
    This PR changes it to iterate backwards using bytes instead of characters, so that when `rposition()` finally finds a non-whitespace byte, we *know* that we've skipped exactly 1 byte. This was *probably*(?) what the code was intending to do
    
    changelog: Fix ICE in [`needless_return`] when previous line end in a non-ascii character
    bors committed Mar 15, 2024
    Configuration menu
    Copy the full SHA
    c9f2482 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2024

  1. Configuration menu
    Copy the full SHA
    9408c59 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4e72ca3 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#12441 - CBSpeir:dedup-else-if-without-else, r…

    …=dswij
    
    [`else_if_without_else`]: Fix duplicate diagnostics
    
    Relates to: rust-lang#12379
    
    changelog:  Fix duplicate lint diagnostic emission from [`else_if_without_else`]
    bors committed Mar 16, 2024
    Configuration menu
    Copy the full SHA
    59a5ad4 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2024

  1. Auto merge of rust-lang#12482 - J-ZhengLi:issue12131, r=Jarcho

    fix [`dbg_macro`] FN when dbg is inside some complex macros
    
    fixes: rust-lang#12131
    
    It appears that [`root_macro_call_first_node`] only detects `println!` in the following example:
    ```rust
    println!("{:?}", dbg!(s));
    ```
    ---
    
    changelog: fix [`dbg_macro`] FN when `dbg` is inside some complex macros
    
    (re-opening b'cuz bors doesn't like my previous one)
    bors committed Mar 17, 2024
    Configuration menu
    Copy the full SHA
    12ecaa8 View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#12479 - y21:readonly_write_lock_perf, r=Jarcho

    move `readonly_write_lock` to perf
    
    [There haven't been any issues](https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+readonly_write_lock) since its creation and it's a pretty useful lint I think, so I'd say it's worth giving it a try?
    
    Did a lintcheck run on 300 crates with no results, but I guess `RwLock` is usually not something that's used much in libraries.
    
    changelog: move [`readonly_write_lock`] to perf (now warn-by-default)
    bors committed Mar 17, 2024
    Configuration menu
    Copy the full SHA
    67fa36a View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#12450 - cookie-s:fix-optopt-duplicate-diags, …

    …r=llogiq
    
    [`option_option`]: Fix duplicate diagnostics
    
    Relates to rust-lang#12379
    
    This `option_option` lint change skips checks against `ty`s inside `field_def`s defined by external macro to prevent duplicate diagnostics to the same span `ty` by multiple `Struct` definitions.
    
    ---
    
    changelog: [`option_option`]: Fix duplicate diagnostics
    bors committed Mar 17, 2024
    Configuration menu
    Copy the full SHA
    d202eb6 View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#12451 - Jacherr:issue-12391, r=llogiq

    new restriction lint: `integer_division_remainder_used`
    
    Fixes rust-lang/rust-clippy#12391
    
    Introduces a restriction lint which disallows the use of `/` and `%` operators on any `Int` or `Uint` types (i.e., any that use the default `Div` or `Rem` trait implementations). Custom implementations of these traits are ignored.
    
    ----
    
    changelog: Add new restriction lint [`integer_division_remainder_used`]
    bors committed Mar 17, 2024
    Configuration menu
    Copy the full SHA
    e9a50f2 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2024

  1. Auto merge of rust-lang#12498 - y21:issue12489, r=blyxyas

    [`map_entry`]: call the visitor on the local's `else` block
    
    Fixes rust-lang#12489
    
    The lint already has all the logic it needs for figuring out if it can or can't suggest a closure if it sees control flow expressions like `break` or `continue`, but it was ignoring the local's else block, which meant that it didn't see the `return None;` in a `let..else`.
    
    changelog: [`map_entry`]: suggest `if let` instead of a closure when `return` expressions exist in the else block of a `let..else`
    bors committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    b5dcaae View commit details
    Browse the repository at this point in the history
  2. Avoid various uses of Option<Span> in favor of using DUMMY_SP in …

    …the few cases that used `None`
    oli-obk committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    003c4bc View commit details
    Browse the repository at this point in the history
  3. When displaying multispans, ignore empty lines adjacent to ...

    ```
    error[E0308]: `match` arms have incompatible types
       --> tests/ui/codemap_tests/huge_multispan_highlight.rs:98:18
        |
    6   |       let _ = match true {
        |               ---------- `match` arms have incompatible types
    7   |           true => (
        |  _________________-
    8   | |             // last line shown in multispan header
    ...   |
    96  | |
    97  | |         ),
        | |_________- this is found to be of type `()`
    98  |           false => "
        |  __________________^
    ...   |
    119 | |
    120 | |         ",
        | |_________^ expected `()`, found `&str`
    
    error[E0308]: `match` arms have incompatible types
       --> tests/ui/codemap_tests/huge_multispan_highlight.rs:215:18
        |
    122 |       let _ = match true {
        |               ---------- `match` arms have incompatible types
    123 |           true => (
        |  _________________-
    124 | |
    125 | |         1 // last line shown in multispan header
    ...   |
    213 | |
    214 | |         ),
        | |_________- this is found to be of type `{integer}`
    215 |           false => "
        |  __________________^
    216 | |
    217 | |
    218 | |         1 last line shown in multispan
    ...   |
    237 | |
    238 | |         ",
        | |_________^ expected integer, found `&str`
    ```
    estebank committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    8339474 View commit details
    Browse the repository at this point in the history
  4. Deduplicate associated_body and body_id

    They match on almost the same patterns, which is fishy.
    
    Also turn `associated_body` into a method and do some cleanups nearby the call sites
    oli-obk committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    0dc8769 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    83af0e5 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2024

  1. Configuration menu
    Copy the full SHA
    87d45e5 View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#122021 - oli-obk:delangitemification, r=compi…

    …ler-errors
    
    Use hir::Node helper methods instead of repeating the same impl multiple times
    
    I wanted to do something entirely different and stumbled upon a bunch of cleanups
    bors committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    56288a7 View commit details
    Browse the repository at this point in the history
  3. chore: fix typo

    Signed-off-by: goodmost <zhaohaiyang@outlook.com>
    goodmost committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    e7c3e04 View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#12510 - goodmost:master, r=Alexendoo

    chore: fix typo
    
    changelog: none
    bors committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    3f338b3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    21a97f0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8c866d3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7c0b2dd View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#122029 - estebank:drive-by-ui-test, r=oli-obk

    When displaying multispans, ignore empty lines adjacent to `...`
    
    ```
    error[E0308]: `match` arms have incompatible types
       --> tests/ui/codemap_tests/huge_multispan_highlight.rs:98:18
        |
    6   |       let _ = match true {
        |               ---------- `match` arms have incompatible types
    7   |           true => (
        |  _________________-
    8   | |             // last line shown in multispan header
    ...   |
    96  | |
    97  | |         ),
        | |_________- this is found to be of type `()`
    98  |           false => "
        |  __________________^
    ...   |
    119 | |
    120 | |         ",
        | |_________^ expected `()`, found `&str`
    
    error[E0308]: `match` arms have incompatible types
       --> tests/ui/codemap_tests/huge_multispan_highlight.rs:215:18
        |
    122 |       let _ = match true {
        |               ---------- `match` arms have incompatible types
    123 |           true => (
        |  _________________-
    124 | |
    125 | |         1 // last line shown in multispan header
    ...   |
    213 | |
    214 | |         ),
        | |_________- this is found to be of type `{integer}`
    215 |           false => "
        |  __________________^
    216 | |
    217 | |
    218 | |         1 last line shown in multispan
    ...   |
    237 | |
    238 | |         ",
        | |_________^ expected integer, found `&str`
    ```
    bors committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    76096ef View commit details
    Browse the repository at this point in the history
  9. Auto merge of rust-lang#12511 - humannum14916:assigning_clones_msrv, …

    …r=Alexendoo
    
    `assigning_clones` should respect MSRV
    
    Fixes: rust-lang#12502
    
    This PR fixes the `assigning_clones` lint suggesting to use `clone_from` or `clone_into` on incompatible MSRVs.
    
    `assigning_clones` will suggest using either `clone_from` or `clone_into`, both of which were stabilized in 1.63. If the current MSRV is below 1.63, the lint should not trigger.
    
    changelog: [`assigning_clones`]: don't lint when the MSRV is below 1.63.
    bors committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    89aba8d View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2024

  1. Configuration menu
    Copy the full SHA
    477108d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5f7b3c5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    db7c9fe View commit details
    Browse the repository at this point in the history
  4. std::net: adding acceptfilter feature for netbsd/freebsd.

    similar to linux's ext deferaccept, to filter incoming connections
    before accept.
    devnexen committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    19cb05f View commit details
    Browse the repository at this point in the history
  5. Auto merge of rust-lang#12516 - humannum14916:assigning_clones_msrv, …

    …r=Alexendoo
    
    Make `assigning_clones` MSRV check more precise
    
    Continuation of rust-lang#12511
    
    `clone_into` is the only suggestion subject to the 1.63 MSRV requirement, and the lint should still emit other suggestions regardless of the MSRV.
    
    changelog: [assigning_clones]: only apply MSRV check to `clone_into` suggestions.
    bors committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    5b7efe8 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#12496 - Jacherr:issue-12492, r=blyxyas

    Disable `cast_lossless` when casting to u128 from any (u)int type
    
    Fixes rust-lang/rust-clippy#12492
    
    Disables `cast_lossless` when casting to u128 from any int or uint type. The lint states that when casting to any int type, there can potentially be lossy behaviour if the source type ever exceeds the size of the destination type in the future, which is impossible with a destination of u128.
    
    It's possible this is a bit of a niche edge case which is better addressed by just disabling the lint in code, but I personally couldn't think of any good reason to still lint in this specific case - maybe except if the source is a bool, for readability reasons :).
    
    changelog: FP: `cast_lossless`: disable lint when casting to u128 from any (u)int type
    bors committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    34766a6 View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#12509 - xFrednet:changelog-1-77, r=dswij

    Changelog for Clippy 1.77 🏫
    
    Roses are violets,
    Red is blue,
    Let's create a world,
    Perfect for me and you
    
    ---
    
    ### The cat of this release is: *Luigi*
    
    <img width=500 src="https://github.com/rust-lang/rust-clippy/assets/17087237/ea13d05c-e5ba-4189-9e16-49bf1b43c468" alt="The cats of this Clippy release" />
    
    The cat for the next release can be voted on: [here](https://forms.gle/57gbrNvXtCUmrHYh6)
    
    The cat for the next next release can be nominated in the comments and will be voted in the next changelog PR (Submission deadline is 2024-03-30 23:59CET)
    
    ---
    
    changelog: none
    bors committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    a16a9ed View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2024

  1. Configuration menu
    Copy the full SHA
    f6f89dc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f8a093c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    beb0c22 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8ca7aac View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e505408 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#12520 - xFrednet:lets-review-again, r=xFrednet

    Add xFrednet back to the reviewing rotation 🎉
    
    You know what? Having a work-life balance is boring.
    
    I truly enjoyed having a free few weeks, and learned that I need to take a break every once in a while, but not doing reviews feels weird. So, this is me coming back for more :D
    
    ---
    
    r? `@ghost`
    
    changelog: none
    bors committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    32799a5 View commit details
    Browse the repository at this point in the history
  7. make failure logs less verbose

    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    796105e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ae4c5c8 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    238cd36 View commit details
    Browse the repository at this point in the history
  10. Auto merge of rust-lang#12523 - Rua:typo-fix, r=dswij

    Fix documentation typo "appects" > "affects"
    
    changelog: none
    
    This fixes a typo in the `iter_filter_is_some` and `iter_filter_is_ok` lint documentation.
    bors committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    443f459 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    daa6553 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    453676f View commit details
    Browse the repository at this point in the history
  13. Use != Positive rather than == Negative

    Feels more complete, and for ImplPolarity has the side-effect of making
    sure we also handle reservation impls correctly
    compiler-errors committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    76ad048 View commit details
    Browse the repository at this point in the history
  14. Fix clippy

    compiler-errors committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    08d8cd5 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    dae3c43 View commit details
    Browse the repository at this point in the history
  16. Avoid noop rewrite of issues.txt

    This can trigger incremental rebuilds since incr doesn't realize nothing changed.
    workingjubilee committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    c00920c View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    7d42d73 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    bb86654 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    e1d15b5 View commit details
    Browse the repository at this point in the history
  20. Auto merge of rust-lang#12527 - flip1995:rustup, r=flip1995

    Rustup
    
    r? `@ghost`
    
    changelog: none
    bors committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    9d6f416 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    5a82d16 View commit details
    Browse the repository at this point in the history
  22. Update Cargo.lock

    flip1995 committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    8e53d53 View commit details
    Browse the repository at this point in the history
  23. Rollup merge of rust-lang#121881 - devnexen:bsd_acceptfilter, r=Amanieu

    std::net: adding acceptfilter feature for netbsd/freebsd.
    
    similar to linux's ext deferaccept, to filter incoming connections before accept.
    matthiaskrgr authored Mar 21, 2024
    Configuration menu
    Copy the full SHA
    90968ec View commit details
    Browse the repository at this point in the history
  24. Rollup merge of rust-lang#122817 - ultrabear:ultrabear_btreedoc, r=Ni…

    …lstrieb
    
    Doc Guarantee: BTree(Set|Map):  `IntoIter` Iterate in Sorted by key Order
    
    This Doc-only PR adds text to the IntoIterator implementation and IntoIter type for both BTreeMap and BTreeSet that states that the returned items will be in sorted-by-key order, this is a guarantee that is made by the iter() and iter_mut() methods of BTreeMap/Set and BTreeMap respectively, but not on into_iter methods or types.
    
    I don't know how the IntoIter iteration would not be sorted by key, and I would like to rely on that behavior for my prefix_array crate.
    
    The text appended to IntoIter documentation is based on each types respective iter() method documentation, as is the text used in the IntoIterator documentation; they are slightly inconsistent between Set/Map, but they are consistent within their own types documentation.
    matthiaskrgr authored Mar 21, 2024
    Configuration menu
    Copy the full SHA
    e4ee362 View commit details
    Browse the repository at this point in the history
  25. Rollup merge of rust-lang#122826 - compiler-errors:associated-type-bo…

    …und-tests, r=lcnr
    
    Add tests for shortcomings of associated type bounds
    
    Adds the test in rust-lang#122791 (comment)
    
    Turns out that rust-lang#121123 is what breaks `tests/ui/associated-type-bounds/cant-see-copy-bound-from-child-rigid.rs` (passes on nightly), but given that associated type bounds haven't landed anywhere yet, I'm happy with breaking it.
    
    This is unrelated to rust-lang#122791, which just needed that original commit e6b64c6 stacked on top of it so that it wouldn't have tests failing.
    
    r? lcnr
    matthiaskrgr authored Mar 21, 2024
    Configuration menu
    Copy the full SHA
    63040a4 View commit details
    Browse the repository at this point in the history
  26. Rollup merge of rust-lang#122829 - ShoyuVanilla:gen-block-impl-fused-…

    …iter, r=compiler-errors
    
    Implement `FusedIterator` for `gen` block
    
    cc rust-lang#117078
    matthiaskrgr authored Mar 21, 2024
    Configuration menu
    Copy the full SHA
    f3d3e00 View commit details
    Browse the repository at this point in the history
  27. Rollup merge of rust-lang#122831 - onur-ozkan:less-verbose-fail-logs,…

    … r=clubby789
    
    make failure logs less verbose
    
    Resolves rust-lang#122706
    
    Logs without verbose flag:
    
    ![image](https://github.com/rust-lang/rust/assets/39852038/f2fc2d35-0954-44b0-bedc-045afedaabe8)
    
    Logs with verbose flag:
    
    ![image](https://github.com/rust-lang/rust/assets/39852038/b9308655-ad31-4527-a1be-5a62a78ac469)
    
    I decided to exclude command from the log since it's already included in verbose mode.
    
    cc ``@Nilstrieb``
    matthiaskrgr authored Mar 21, 2024
    Configuration menu
    Copy the full SHA
    b40dc4a View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    0e2bb92 View commit details
    Browse the repository at this point in the history
  29. Rollup merge of rust-lang#122838 - workingjubilee:less-catholic-bless…

    …ings-to-prevent-incremental-protests, r=matthiaskrgr
    
    Avoid noop rewrite of issues.txt
    
    Fixes rust-lang#122834
    
    r? ``@matthiaskrgr``
    matthiaskrgr authored Mar 21, 2024
    Configuration menu
    Copy the full SHA
    70c095e View commit details
    Browse the repository at this point in the history
  30. Rollup merge of rust-lang#122839 - compiler-errors:predicate-polarity…

    …, r=lcnr
    
    Split out `PredicatePolarity` from `ImplPolarity`
    
    Because having to deal with a third `Reservation` level in all the trait solver code is kind of weird.
    
    r? `@lcnr` or `@oli-obk`
    matthiaskrgr authored Mar 21, 2024
    Configuration menu
    Copy the full SHA
    e6da4a8 View commit details
    Browse the repository at this point in the history
  31. Rollup merge of rust-lang#122845 - flip1995:clippy-subtree-update, r=…

    …matthiaskrgr
    
    Clippy subtree update
    
    r? `@Manishearth`
    matthiaskrgr authored Mar 21, 2024
    Configuration menu
    Copy the full SHA
    0a7659e View commit details
    Browse the repository at this point in the history