-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Clippy subtree sync #116489
Commits on Aug 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 1c77b0b - Browse repository at this point
Copy the full SHA 1c77b0bView commit details
Commits on Sep 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b5941a2 - Browse repository at this point
Copy the full SHA b5941a2View commit details
Commits on Sep 23, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 39f7f69 - Browse repository at this point
Copy the full SHA 39f7f69View commit details
Commits on Sep 25, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 772296c - Browse repository at this point
Copy the full SHA 772296cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ad218c - Browse repository at this point
Copy the full SHA 6ad218cView commit details -
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 🎉.
Configuration menu - View commit details
-
Copy full SHA for 78ddc8d - Browse repository at this point
Copy the full SHA 78ddc8dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1972cc8 - Browse repository at this point
Copy the full SHA 1972cc8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 84d6894 - Browse repository at this point
Copy the full SHA 84d6894View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce45221 - Browse repository at this point
Copy the full SHA ce45221View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f19857 - Browse repository at this point
Copy the full SHA 0f19857View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 6c48ef3 - Browse repository at this point
Copy the full SHA 6c48ef3View commit details
Commits on Sep 26, 2023
-
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
Configuration menu - View commit details
-
Copy full SHA for bf4c998 - Browse repository at this point
Copy the full SHA bf4c998View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5507482 - Browse repository at this point
Copy the full SHA 5507482View commit details -
Configuration menu - View commit details
-
Copy full SHA for fab9000 - Browse repository at this point
Copy the full SHA fab9000View commit details -
Configuration menu - View commit details
-
Copy full SHA for f2efdba - Browse repository at this point
Copy the full SHA f2efdbaView commit details -
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 `_`
Configuration menu - View commit details
-
Copy full SHA for 585b56f - Browse repository at this point
Copy the full SHA 585b56fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6cdff10 - Browse repository at this point
Copy the full SHA 6cdff10View commit details -
Configuration menu - View commit details
-
Copy full SHA for ec2f626 - Browse repository at this point
Copy the full SHA ec2f626View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 493ab53 - Browse repository at this point
Copy the full SHA 493ab53View commit details -
Auto merge of rust-lang#11569 - Alexendoo:needless-raw-string-descr, …
…r=llogiq Describe the type of string in raw_strings lints changelog: none
Configuration menu - View commit details
-
Copy full SHA for 4494b69 - Browse repository at this point
Copy the full SHA 4494b69View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 7f132e8 - Browse repository at this point
Copy the full SHA 7f132e8View commit details
Commits on Sep 27, 2023
-
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`
Configuration menu - View commit details
-
Copy full SHA for 3b75db7 - Browse repository at this point
Copy the full SHA 3b75db7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 62b8ef3 - Browse repository at this point
Copy the full SHA 62b8ef3View commit details
Commits on Sep 28, 2023
-
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
Configuration menu - View commit details
-
Copy full SHA for 124f1b0 - Browse repository at this point
Copy the full SHA 124f1b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for b413bf6 - Browse repository at this point
Copy the full SHA b413bf6View commit details -
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`
Configuration menu - View commit details
-
Copy full SHA for 29ed6fa - Browse repository at this point
Copy the full SHA 29ed6faView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for d18d01a - Browse repository at this point
Copy the full SHA d18d01aView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 91997a4 - Browse repository at this point
Copy the full SHA 91997a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 82207f4 - Browse repository at this point
Copy the full SHA 82207f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 330ebbb - Browse repository at this point
Copy the full SHA 330ebbbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 38fd80a - Browse repository at this point
Copy the full SHA 38fd80aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a4d11d9 - Browse repository at this point
Copy the full SHA a4d11d9View commit details
Commits on Sep 29, 2023
-
Configuration menu - View commit details
-
Copy full SHA for ad5653b - Browse repository at this point
Copy the full SHA ad5653bView commit details -
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`
Configuration menu - View commit details
-
Copy full SHA for d38fa1a - Browse repository at this point
Copy the full SHA d38fa1aView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 1a82ca0 - Browse repository at this point
Copy the full SHA 1a82ca0View commit details -
Auto merge of rust-lang#11582 - DaniPopes:missing-headers, r=xFrednet
Add missing lint description headers Discovered in https://github.com/rust-lang/rust-analyzer/pull/15680/files#diff-7cb229b5139c72b6c230e3c195be375724c92226421fd57d5cf08872503e8c27L214-R226 changelog: none
Configuration menu - View commit details
-
Copy full SHA for 67a83ff - Browse repository at this point
Copy the full SHA 67a83ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d20179 - Browse repository at this point
Copy the full SHA 2d20179View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for b00236d - Browse repository at this point
Copy the full SHA b00236dView commit details
Commits on Sep 30, 2023
-
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.
Configuration menu - View commit details
-
Copy full SHA for ad0b7ed - Browse repository at this point
Copy the full SHA ad0b7edView commit details -
Configuration menu - View commit details
-
Copy full SHA for 44b6aca - Browse repository at this point
Copy the full SHA 44b6acaView commit details -
Configuration menu - View commit details
-
Copy full SHA for d5cc97e - Browse repository at this point
Copy the full SHA d5cc97eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8eb586d - Browse repository at this point
Copy the full SHA 8eb586dView commit details -
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?
Configuration menu - View commit details
-
Copy full SHA for 0e43a04 - Browse repository at this point
Copy the full SHA 0e43a04View commit details
Commits on Oct 1, 2023
-
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
Configuration menu - View commit details
-
Copy full SHA for e683e3e - Browse repository at this point
Copy the full SHA e683e3eView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 3169423 - Browse repository at this point
Copy the full SHA 3169423View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9dfd60c - Browse repository at this point
Copy the full SHA 9dfd60cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f1a78f - Browse repository at this point
Copy the full SHA 6f1a78fView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 0f8b862 - Browse repository at this point
Copy the full SHA 0f8b862View commit details -
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`.
Configuration menu - View commit details
-
Copy full SHA for cbe67bc - Browse repository at this point
Copy the full SHA cbe67bcView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for ec15630 - Browse repository at this point
Copy the full SHA ec15630View commit details -
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)
Configuration menu - View commit details
-
Copy full SHA for aee3daf - Browse repository at this point
Copy the full SHA aee3dafView commit details -
Configuration menu - View commit details
-
Copy full SHA for 258b9a8 - Browse repository at this point
Copy the full SHA 258b9a8View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 331d01e - Browse repository at this point
Copy the full SHA 331d01eView commit details
Commits on Oct 2, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 3f0da4d - Browse repository at this point
Copy the full SHA 3f0da4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 07e6329 - Browse repository at this point
Copy the full SHA 07e6329View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 08c429f - Browse repository at this point
Copy the full SHA 08c429fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ea4b388 - Browse repository at this point
Copy the full SHA ea4b388View commit details
Commits on Oct 3, 2023
-
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>
Configuration menu - View commit details
-
Copy full SHA for 81400e2 - Browse repository at this point
Copy the full SHA 81400e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c525fd - Browse repository at this point
Copy the full SHA 2c525fdView commit details -
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`
Configuration menu - View commit details
-
Copy full SHA for f107a50 - Browse repository at this point
Copy the full SHA f107a50View commit details -
Configuration menu - View commit details
-
Copy full SHA for e465264 - Browse repository at this point
Copy the full SHA e465264View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1a56f90 - Browse repository at this point
Copy the full SHA 1a56f90View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 29958f0 - Browse repository at this point
Copy the full SHA 29958f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for c715267 - Browse repository at this point
Copy the full SHA c715267View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for b437069 - Browse repository at this point
Copy the full SHA b437069View commit details -
Configuration menu - View commit details
-
Copy full SHA for eab0a75 - Browse repository at this point
Copy the full SHA eab0a75View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d920a8 - Browse repository at this point
Copy the full SHA 8d920a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9483555 - Browse repository at this point
Copy the full SHA 9483555View commit details
Commits on Oct 4, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 404217e - Browse repository at this point
Copy the full SHA 404217eView commit details -
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`
Configuration menu - View commit details
-
Copy full SHA for 716f211 - Browse repository at this point
Copy the full SHA 716f211View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 9554e47 - Browse repository at this point
Copy the full SHA 9554e47View commit details -
Configuration menu - View commit details
-
Copy full SHA for 56794fa - Browse repository at this point
Copy the full SHA 56794faView commit details -
Configuration menu - View commit details
-
Copy full SHA for c5c6d70 - Browse repository at this point
Copy the full SHA c5c6d70View commit details
Commits on Oct 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for dcc4001 - Browse repository at this point
Copy the full SHA dcc4001View commit details -
Configuration menu - View commit details
-
Copy full SHA for 48d2770 - Browse repository at this point
Copy the full SHA 48d2770View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 279127c - Browse repository at this point
Copy the full SHA 279127cView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 7217c0f - Browse repository at this point
Copy the full SHA 7217c0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 82c3064 - Browse repository at this point
Copy the full SHA 82c3064View commit details -
Configuration menu - View commit details
-
Copy full SHA for 50754da - Browse repository at this point
Copy the full SHA 50754daView commit details -
Configuration menu - View commit details
-
Copy full SHA for b8677e5 - Browse repository at this point
Copy the full SHA b8677e5View commit details -
Auto merge of rust-lang#11629 - flip1995:rustup, r=flip1995
Rustup r? `@ghost` changelog: none
Configuration menu - View commit details
-
Copy full SHA for b105fb4 - Browse repository at this point
Copy the full SHA b105fb4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c8c3ad - Browse repository at this point
Copy the full SHA 3c8c3adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6233d44 - Browse repository at this point
Copy the full SHA 6233d44View commit details