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

Clippy subtree sync #116489

Merged
merged 83 commits into from
Oct 6, 2023
Merged

Clippy subtree sync #116489

merged 83 commits into from
Oct 6, 2023

Commits on Aug 27, 2023

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

Commits on Sep 8, 2023

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

Commits on Sep 23, 2023

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

Commits on Sep 25, 2023

  1. Configuration menu
    Copy the full SHA
    772296c View commit details
    Browse the repository at this point in the history
  2. Add colored help

    blyxyas committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    6ad218c View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#11495 - blyxyas:help_message_reformat, r=flip…

    …1995
    
    Add colored help to be consistent with Cargo
    
    On rust-lang/cargo#12578, a new colored help message format was introduced. This PR introduces the same styling from that `cargo help` message to our `cargo clippy --help` message.
    
    More information is provided in the original PR, fixes rust-lang#11482. The perfect reviewing process would be that the reviewer installs this branch and checks for themselves, but here are some screenshots, there are some more screenshots in the original issue.
    
    ![image](https://github.com/rust-lang/rust-clippy/assets/73757586/0c4d1b6d-5aa2-4146-a401-9ae88f6dedf5)
    
    (Note that the actual text may change in the actual commit, that screenshot is just to test the colors).
    Also note that the `color-print` version **should always** be synced with Cargo's `color-print` version to avoid increasing build times in the rust-lang/rust repo.
    
    changelog:Add colors to the `cargo clippy --help` output 🎉.
    bors committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    78ddc8d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1972cc8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    84d6894 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ce45221 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0f19857 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#11557 - Alexendoo:dev-new-lint-msrv-test, r=M…

    …anishearth
    
    Add msrv test template for `cargo dev new_lint --msrv`
    
    changelog: none
    bors committed Sep 25, 2023
    Configuration menu
    Copy the full SHA
    6c48ef3 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2023

  1. Auto merge of rust-lang#11564 - Alexendoo:config-test-test, r=giraffate

    Test that each config value exists in a test clippy.toml
    
    Inspired by rust-lang#11560, adds a test that each config option exists in some form in a `clippy.toml` in `tests/` (currently some are in `ui-toml`, some in `ui-cargo`)
    
    changelog: none
    bors committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    bf4c998 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5507482 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fab9000 View commit details
    Browse the repository at this point in the history
  4. subst -> instantiate

    lcnr committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    f2efdba View commit details
    Browse the repository at this point in the history
  5. Auto merge of rust-lang#10300 - koka831:fix/9942, r=xFrednet

    Do not lint when imported item contains underscore
    
    fix rust-lang/rust-clippy#9942
    
    changelog: [`wildcard_imports`]: No longer lints when imported items contain an item with the name `_`
    bors committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    585b56f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6cdff10 View commit details
    Browse the repository at this point in the history
  7. Add manual_hash_one lint

    Alexendoo committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    ec2f626 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#11556 - Alexendoo:manual-hash-one, r=Manishearth

    Add `manual_hash_one` lint
    
    Adds a lint to suggest using [`BuildHasher::hash_one`](https://doc.rust-lang.org/std/hash/trait.BuildHasher.html#method.hash_one)
    
    changelog: [`manual_hash_one`]: new lint
    bors committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    493ab53 View commit details
    Browse the repository at this point in the history
  9. Auto merge of rust-lang#11569 - Alexendoo:needless-raw-string-descr, …

    …r=llogiq
    
    Describe the type of string in raw_strings lints
    
    changelog: none
    bors committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    4494b69 View commit details
    Browse the repository at this point in the history
  10. Auto merge of rust-lang#116144 - lcnr:subst-less, r=oli-obk

    subst -> instantiate
    
    continues rust-lang#110793, there are still quite a few uses of `subst` and `substitute`, but changing them all in the same PR was a bit too much, so I've stopped here for now.
    bors committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    7f132e8 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2023

  1. Auto merge of rust-lang#116163 - compiler-errors:lazyness, r=oli-obk

    Don't store lazyness in `DefKind::TyAlias`
    
    1. Don't store lazyness of a type alias in its `DefKind`, but instead via a query.
    2. This allows us to treat type aliases as lazy if `#[feature(lazy_type_alias)]` *OR* if the alias contains a TAIT, rather than having checks for both in separate parts of the codebase.
    
    r? `@oli-obk` cc `@fmease`
    bors committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    3b75db7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    62b8ef3 View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2023

  1. Auto merge of rust-lang#11574 - unexge:missing-assert-message-docs, r…

    …=Alexendoo
    
    Mention that `missing_assert_message` lint ignores test functions
    
    Updates `missing_assert_message`'s docs to reflect that it ignores test functions as pointed out by `@mickvangelderen` in rust-lang/rust-clippy#10362 (comment)
    
    ---
    
    changelog: [`missing_assert_message`]: Update docs to reflect this lint ignores test functions
    bors committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    124f1b0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b413bf6 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#11415 - Alexendoo:needless-raw-string-hashes-…

    …pedantic, r=flip1995
    
    Move `needless_raw_string_hashes` to `pedantic`
    
    IMO it doesn't improve code enough to be warn by default. [It seems to be unclear to some also](rust-lang/rust-clippy#11402), but that can probably be remedied separately
    
    changelog: Moved [`needless_raw_string_hashes`] to `pedantic` (Now allow-by-default)
    [rust-lang#11415](rust-lang/rust-clippy#11415)
    
    r? `@flip1995`
    bors committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    29ed6fa View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#11576 - koka831:fix/10128, r=llogiq

    write_literal: Fix index of the remaining positional arguments
    
    - fixes rust-lang/rust-clippy#10128
    - `clippy --fix` replaces multiple warnings at once
       e.g.)
       ```rust
       writeln!(v, "{0} {1}", "hello", "world");
       // before: `writeln!(v, "hello {1}", "world");`
       // now: `writeln!(v, "hello world");`
       ```
    
    changelog: [`print_literal`], [`write_literal`]: Now handles positional argument properly
    bors committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    d18d01a View commit details
    Browse the repository at this point in the history
  5. Auto merge of rust-lang#11565 - RalfJung:mir_to_const, r=Jarcho

    mir_to_const improvements
    
    This simplifies some code and also fixes the float array handling to properly take into account the `offset`, and to work with little-endian targets.
    
    Fixes rust-lang/rust-clippy#11488
    changelog: none
    bors committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    91997a4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    82207f4 View commit details
    Browse the repository at this point in the history
  7. new lint: iter_without_into_iter

    y21 committed Sep 28, 2023
    Configuration menu
    Copy the full SHA
    330ebbb View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    38fd80a View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    a4d11d9 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2023

  1. Configuration menu
    Copy the full SHA
    ad5653b View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#11527 - y21:iter_without_into_iter, r=Jarcho

    new lint: `iter_without_into_iter`
    
    Closes rust-lang#9736
    
    A new lint that looks for `iter` (and `iter_mut`) method implementations without the type implementing `IntoIterator` for `&Type`.
    Imo this seems rather pedantic, so I went with that, but I can be convinced to change it to `style` like the linked issue asked for.
    Writing a machine applicable suggestion seems a bit tricky and tedious, so for now this relies on the user adding remaining lifetimes.
    
    changelog: new lint: `iter_without_into_iter`
    bors committed Sep 29, 2023
    Configuration menu
    Copy the full SHA
    d38fa1a View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#116245 - flip1995:clippy-backport, r=Manish…

    …earth
    
    Clippy backport: Move needless_raw_string_hashes to pedantic
    
    Really small backport this time. Context: rust-lang/rust-clippy#11415 (comment)
    
    I'd rather get this in 1.74 than waiting another release cycle.
    
    r? `@Manishearth`
    
    cc `@Mark-Simulacrum` This should be merged before beta is branched tomorrow.
    matthiaskrgr authored Sep 29, 2023
    Configuration menu
    Copy the full SHA
    1a82ca0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    67a83ff View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2d20179 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#11580 - y21:issue11579, r=Jarcho

    [`manual_let_else`]: only omit block if span is from same ctxt
    
    Fixes rust-lang#11579.
    
    The lint already had logic for omitting a block in `else` if a block is already present, however this didn't handle the case where the block is from a different expansion/syntax context. E.g.
    ```rs
    macro_rules! panic_in_block {
      () => { { panic!() } }
    }
    
    let _ = match Some(1) {
      Some(v) => v,
      _ => panic_in_block!()
    };
    ```
    It would see this in its expanded form as `_ => { panic!() }` and think it doesn't have to include a block in its suggestion because it is already there, however that's not true if it's from a different expansion like in this case.
    
    changelog: [`manual_let_else`]: only omit block in suggestion if the block is from the same expansion
    bors committed Sep 29, 2023
    Configuration menu
    Copy the full SHA
    b00236d View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2023

  1. Auto merge of rust-lang#116254 - WaffleLapkin:nicen-traversal, r=cjgi…

    …llot
    
    Assorted improvements for `rustc_middle::mir::traversal`
    
    r? `@cjgillot`
    
    I'm not _entirely_ sure about all changes, although I do like all of them. If you'd like I can drop some commits. Best reviewed on a commit-by-commit basis, I think, since they are fairly isolated.
    bors committed Sep 30, 2023
    Configuration menu
    Copy the full SHA
    ad0b7ed View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    44b6aca View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d5cc97e View commit details
    Browse the repository at this point in the history
  4. new lint: into_iter_without_iter

    y21 committed Sep 30, 2023
    Configuration menu
    Copy the full SHA
    8eb586d View commit details
    Browse the repository at this point in the history
  5. Auto merge of rust-lang#11587 - y21:into_iter_without_iter, r=Jarcho

    new lint: `into_iter_without_iter`
    
    Closes rust-lang#9736 (part 2)
    
    This implements the other lint that my earlier PR missed: given an `IntoIterator for &Type` impl, check that there exists an inherent `fn iter(&self)` method.
    
    changelog: new lint: `into_iter_without_iter`
    
    r? `@Jarcho` since you reviewed rust-lang#11527 I figured it makes sense for you to review this as well?
    bors committed Sep 30, 2023
    Configuration menu
    Copy the full SHA
    0e43a04 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2023

  1. Don't lint manual_non_exhaustive when enum explicitly marked as `no…

    …n_exhaustive`
    
    There are cases where users create a unit variant for the purposes
    of tracking the number of variants for an nonexhaustive enum.
    We should check if an enum is explicitly marked as nonexhaustive
    before reporting `manual_non_exhaustive` in these cases. Fixes rust-lang#11583
    Tyrubias committed Oct 1, 2023
    Configuration menu
    Copy the full SHA
    e683e3e View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#115670 - Zoxc:outline-panic-macro-1, r=Mark-S…

    …imulacrum
    
    Partially outline code inside the panic! macro
    
    This outlines code inside the panic! macro in some cases. This is split out from rust-lang#115562 to exclude changes to rustc.
    bors committed Oct 1, 2023
    Configuration menu
    Copy the full SHA
    3169423 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9dfd60c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6f1a78f View commit details
    Browse the repository at this point in the history
  5. Fix documentation link

    The file pointed to by the old link
    
    https://github.com/rust-lang/rust-clippy/blob/557f6848bd5b7183f55c1e1522a326e9e1df6030/clippy_lints/src/lib.rs#L110
    
    did not talk about categories and levels.
    
    The new link (hopefully) points here
    
    https://doc.rust-lang.org/stable/clippy/
    
    which has a nice table explaining the mappings.
    schubart committed Oct 1, 2023
    Configuration menu
    Copy the full SHA
    0f8b862 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#11590 - Tyrubias:non_ex_false_positive, r=Ale…

    …xendoo
    
    Don't lint `manual_non_exhaustive` when enum is `#[non_exhaustive]`
    
    Fixes rust-lang#11583
    
    changelog: Fix [`manual_non_exhaustive`] false positive for unit enum variants when enum is explicitly `non_exhaustive`.
    bors committed Oct 1, 2023
    Configuration menu
    Copy the full SHA
    cbe67bc View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#11592 - schubart:fix_documentation_link, r=fl…

    …ip1995
    
    Fix documentation link
    
    The file pointed to by the old link
    
        https://github.com/rust-lang/rust-clippy/blob/557f6848bd5b7183f55c1e1522a326e9e1df6030/clippy_lints/src/lib.rs#L110
    
    did not talk about categories and levels.
    
    The new link (hopefully) points here
    
        https://doc.rust-lang.org/stable/clippy/
    
    which has a nice table explaining the mappings.
    
    changelog: none
    bors committed Oct 1, 2023
    Configuration menu
    Copy the full SHA
    ec15630 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#11593 - koka831:fix/10511, r=xFrednet

    Use Span#from_expansion instead of in_external_macro
    
    - fixes rust-lang#10511
    
    I checked [the reported repository](rust-lang/rust-clippy#10511 (comment)) and found that clippy hangs at [py_sync.rs#L85](https://github.com/rigetti/qcs-sdk-rust/blob/842094068ed6174ba08b52a2fbae39dda77cbd00/crates/python/src/py_sync.rs#L85), where a macro(`py_function_sync_async`) defines type parameters. this macro is used in the same crate, so `in_external_macro` wouldn't catch them.
    
    This PR fixes the problem by using `Span#from_expansion`.
    
    ---
    
    changelog: ICE: [`implicit_hasher`]: No longer lints inside macros, which could cause ICEs
    [rust-lang#11593](rust-lang/rust-clippy#11593)
    bors committed Oct 1, 2023
    Configuration menu
    Copy the full SHA
    aee3daf View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    258b9a8 View commit details
    Browse the repository at this point in the history
  10. Auto merge of rust-lang#11265 - Alexendoo:print-literal-unicode-escap…

    …es, r=llogiq
    
    Don't escape unicode escape braces in `print_literal`
    
    Fixes rust-lang#11264
    
    changelog: none
    bors committed Oct 1, 2023
    Configuration menu
    Copy the full SHA
    331d01e View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2023

  1. Configuration menu
    Copy the full SHA
    3f0da4d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    07e6329 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#11596 - blyxyas:fix-fp-needless_pass_by_ref_m…

    …ut, r=Jarcho
    
    Move `needless_pass_by_ref_mut`: `suspicious` -> `nursery`
    
    [Related to [this Zulip thread](https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/needless_pass_by_ref_mut.20isn't.20ready.20for.20stable)]
    
    `needless_pass_by_ref_mut` has been released with some important bugs (notably having a lot of reported false positives and an ICE). So it may not be really ready for being in stable until these problems are solved. This PR changes the lint's category from `suspicious` to `nursery`, just that.
    changelog: none
    bors committed Oct 2, 2023
    Configuration menu
    Copy the full SHA
    08c429f View commit details
    Browse the repository at this point in the history
  4. subtyping_projections

    ouz-a committed Oct 2, 2023
    Configuration menu
    Copy the full SHA
    ea4b388 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2023

  1. Auto merge of rust-lang#11589 - koka831:fix/10198, r=giraffate

    std_instead_of_core: avoid lint inside of proc-macro
    
    - fixes rust-lang/rust-clippy#10198
    
    note: The lint for the reported `thiserror::Error` has been suppressed by [Don't lint unstable moves in std_instead_of_core](https://github.com/rust-lang/rust-clippy/pull/9545/files#diff-2cb8a24429cf9d9898de901450d640115503a10454d692dddc6a073a299fbb7eR29) because `thiserror::Error`  internally implements `std::error::Error for (derived struct)`.
    
    changelog: [`std_intead_of_core`]: avoid linting inside proc-macro
    
    I confirmed this change fixes the problem:
    <details>
    <summary>test result without the change</summary>
    
    ```console
    error: used import from `std` instead of `core`
      --> tests/ui/std_instead_of_core.rs:65:14
       |
    LL |     #[derive(ImplStructWithStdDisplay)]
       |              ^^^^^^^^^^^^^^^^^^^^^^^^
       |
       = note: this error originates in the derive macro `ImplStructWithStdDisplay` (in Nightly builds, run with -Z macro-backtrace for more info)
    ```
    </details>
    bors committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    81400e2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2c525fd View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#115025 - ouz-a:ouz_testing, r=lcnr

    Make subtyping explicit in MIR
    
    This adds new mir-opt that pushes new `ProjectionElem` called `ProjectionElem::Subtype(T)` to `Rvalue` of a subtyped assignment so we can unsoundness issues like rust-lang#107205
    
    Addresses rust-lang#112651
    
    r? `@lcnr`
    bors committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    f107a50 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e465264 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1a56f90 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#11602 - koka831:fix/11601, r=xFrednet

    Avoid invoking `ignored_unit_patterns` in macro definition
    
    Fixes rust-lang/rust-clippy#11601
    
    The reported problem occured in [a derive macro](https://github.com/mpalmer/ct-structs/actions/runs/6386980382/job/17334587328#step:6:239). This PR avoid linting in macros.
    
    changelog: [`ignored_unit_patterns`] No longer lints inside macro definitions
    bors committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    29958f0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c715267 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#11603 - koka831:fix/11599, r=y21

    Fix: avoid changing drop order
    
    Fixes rust-lang/rust-clippy#11599
    
    changelog: [`redundant_locals`] No longer lints which implements Drop trait to avoid reordering
    bors committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    b437069 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    eab0a75 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    8d920a8 View commit details
    Browse the repository at this point in the history
  11. sudo CI=green

    xFrednet committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    9483555 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2023

  1. Address PR Review <3

    xFrednet committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    404217e View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#116360 - compiler-errors:async-span, r=oli-obk

    Point to full `async fn` for future
    
    Semi-follow-up to rust-lang#116296 (comment)
    
    cc `@asquared31415`
    bors committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    716f211 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#11605 - xFrednet:changelog-1-73, r=blyxyas

    Changelog for Rust 1.73 🖊️
    
    Roses are red,
    violets are blue,
    I'm tired... 💤
    Oh nice, tea 🍵
    
    ---
    
    ### The cat of this release:
    
    ![cat-like-doritos](https://github.com/rust-lang/rust-clippy/assets/114838443/1ca9eb1e-3e5c-42a4-bda9-6f24a2e03015)
    
    cc: `@Centri3` & `@blyxyas`
    
    As the author, I call dibs on the 1.74 cat picture 🐈
    
    ---
    
    changelog: none
    bors committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    9554e47 View commit details
    Browse the repository at this point in the history
  4. Fix clippy

    compiler-errors committed Oct 4, 2023
    Configuration menu
    Copy the full SHA
    56794fa View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c5c6d70 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2023

  1. Configuration menu
    Copy the full SHA
    dcc4001 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    48d2770 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#11611 - Alexendoo:items-after-test-module-che…

    …ck-crate, r=blyxyas
    
    Fix `items_after_test_module` for non root modules, add applicable suggestion
    
    Fixes rust-lang#11050
    Fixes rust-lang#11153
    
    changelog: [`items_after_test_module`]: Now suggests a machine-applicable suggestion.
    changelog: [`items:after_test_module`]: Also lints for non root modules
    bors committed Oct 6, 2023
    Configuration menu
    Copy the full SHA
    279127c View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#11628 - koka831:fix/11625, r=blyxyas

    Improve `redundant_locals` help message
    
    Fixes rust-lang#11625
    
    AFAIK, `span_lint_and_help` points the beginning of spans when we pass multiple spans to the second argument, so This PR I also modified its help span and its message.
    
    lint result of the given example in the issue will be:
    
    ```console
    error: redundant redefinition of a binding `apple`
     --> src/main.rs:5:5
      |
    5 |     let apple = apple;
      |     ^^^^^^^^^^^^^^^^^^
      |
    help: `apple` is initially defined here
     --> src/main.rs:4:9
      |
    4 |     let apple = 42;
      |         ^^^^^
      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_locals
    ```
    
    I hope that this change might help reduce user confusion, but I'd appreciate alternative suggestions:)
    
    changelog: [`redundant_locals`]: Now points at the rebinding of the variable
    bors committed Oct 6, 2023
    Configuration menu
    Copy the full SHA
    7217c0f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    82c3064 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    50754da View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b8677e5 View commit details
    Browse the repository at this point in the history
  8. Auto merge of rust-lang#11629 - flip1995:rustup, r=flip1995

    Rustup
    
    r? `@ghost`
    
    changelog: none
    bors committed Oct 6, 2023
    Configuration menu
    Copy the full SHA
    b105fb4 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    3c8c3ad View commit details
    Browse the repository at this point in the history
  10. Update Cargo.lock

    flip1995 committed Oct 6, 2023
    Configuration menu
    Copy the full SHA
    6233d44 View commit details
    Browse the repository at this point in the history