-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Clippy #103337
Update Clippy #103337
Commits on Sep 10, 2022
-
Add
manual_filter
lint forOption
Share much of its implementation with `manual_map` and should greatly benefit from its previous feedback.
Configuration menu - View commit details
-
Copy full SHA for 0958f94 - Browse repository at this point
Copy the full SHA 0958f94View commit details
Commits on Oct 1, 2022
-
This lint detects calls to a `&self`-taking `as_ptr` method, where the result is then immediately cast to a `*mut T`. Code like this is probably invalid, as that pointer will not have write permissions, and `*mut T` is usually used to write through.
Configuration menu - View commit details
-
Copy full SHA for b91dc03 - Browse repository at this point
Copy the full SHA b91dc03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 169ef78 - Browse repository at this point
Copy the full SHA 169ef78View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2b944d0 - Browse repository at this point
Copy the full SHA 2b944d0View commit details
Commits on Oct 2, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 830fdf2 - Browse repository at this point
Copy the full SHA 830fdf2View commit details
Commits on Oct 3, 2022
-
Move common functions to `manual_utils.rs`, better arm matching, use clippy utils `contains_unsafe_block`
Configuration menu - View commit details
-
Copy full SHA for b89ac0c - Browse repository at this point
Copy the full SHA b89ac0cView commit details
Commits on Oct 5, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 9e70a0f - Browse repository at this point
Copy the full SHA 9e70a0fView commit details
Commits on Oct 6, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d75b25f - Browse repository at this point
Copy the full SHA d75b25fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 13dbc33 - Browse repository at this point
Copy the full SHA 13dbc33View commit details -
Configuration menu - View commit details
-
Copy full SHA for d3c041a - Browse repository at this point
Copy the full SHA d3c041aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 09a554d - Browse repository at this point
Copy the full SHA 09a554dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4936848 - Browse repository at this point
Copy the full SHA 4936848View commit details -
Configuration menu - View commit details
-
Copy full SHA for 23b1699 - Browse repository at this point
Copy the full SHA 23b1699View commit details -
Configuration menu - View commit details
-
Copy full SHA for 39164ac - Browse repository at this point
Copy the full SHA 39164acView commit details -
Auto merge of rust-lang#9601 - evantypanski:et/issue9575, r=Manishearth
[`match_single_binding`] Add curlies for more cases to fix suggestion causes error Fixes rust-lang#9575 changelog: [`match_single_binding`]: Add curlies for scrutinees with side effects for more cases
Configuration menu - View commit details
-
Copy full SHA for 3690199 - Browse repository at this point
Copy the full SHA 3690199View commit details
Commits on Oct 7, 2022
-
Auto merge of rust-lang#9595 - Alexendoo:author-let-chains, r=Jarcho
Replace if_chain with let chains in `clippy::author` output Should help nudge new contributors towards let chains changelog: none
Configuration menu - View commit details
-
Copy full SHA for 65ae666 - Browse repository at this point
Copy the full SHA 65ae666View commit details -
Configuration menu - View commit details
-
Copy full SHA for 037f698 - Browse repository at this point
Copy the full SHA 037f698View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9cc8da2 - Browse repository at this point
Copy the full SHA 9cc8da2View commit details -
TypeErrCtxt optionally has a TypeckResults so that InferCtxt doesn't need to.
Configuration menu - View commit details
-
Copy full SHA for 3b328e7 - Browse repository at this point
Copy the full SHA 3b328e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6819e85 - Browse repository at this point
Copy the full SHA 6819e85View commit details -
Auto merge of rust-lang#9585 - rust-lang:extend-box-default, r=Alexendoo
extend `box-default` lint, add suggestion This extends the recently added `box-default` lint to also cover `Box::new(vec![])`, `Box::new(String::from(""))` and `Box::new(Vec::from([]))`. Also the lint now suggests a suitable replacement. I did not find a simple way to check whether the type is fully determined by the outside, so I at least checked for some variations to remove the turbofish in those cases. --- changelog: none
Configuration menu - View commit details
-
Copy full SHA for 2c8e473 - Browse repository at this point
Copy the full SHA 2c8e473View commit details -
Configuration menu - View commit details
-
Copy full SHA for e91746e - Browse repository at this point
Copy the full SHA e91746eView commit details -
Auto merge of rust-lang#102091 - RalfJung:const_err, r=oli-obk
make const_err a hard error This lint has been deny-by-default with future incompat wording since [Rust 1.51](rust-lang#80394) and the stable release of this week starts showing it in cargo's future compat reports. I can't wait to finally get rid of at least some of the mess in our const-err-reporting-code. ;) r? `@oli-obk` Fixes rust-lang#71800 Fixes rust-lang#100114
Configuration menu - View commit details
-
Copy full SHA for 7c372cd - Browse repository at this point
Copy the full SHA 7c372cdView commit details
Commits on Oct 8, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 5f6e1d3 - Browse repository at this point
Copy the full SHA 5f6e1d3View commit details -
Rollup merge of rust-lang#102675 - ouz-a:mir-technical-debt, r=oli-obk
Remove `mir::CastKind::Misc` As discussed in rust-lang#97649 `mir::CastKind::Misc` is not clear, this PR addresses that by creating a new enum variant for every valid cast. r? ````@oli-obk````
Configuration menu - View commit details
-
Copy full SHA for 4013d36 - Browse repository at this point
Copy the full SHA 4013d36View commit details -
[
unnecessary_cast
] Do not lint negative hexadecimal literals when c……ast as float Floats cannot be expressed as hexadecimal literals
Configuration menu - View commit details
-
Copy full SHA for 6f4546a - Browse repository at this point
Copy the full SHA 6f4546aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 39a7d00 - Browse repository at this point
Copy the full SHA 39a7d00View commit details -
Auto merge of rust-lang#9451 - kraktus:manual_filter2, r=dswij
Add `manual_filter` lint for `Option` Share much of its implementation with `manual_map` and should greatly benefit from its previous feedback. I'm sure it's possible to even more refactor both and would gladly take input on that as well as any clippy idiomatic usage, since this is my first lint addition. I've added the lint to the complexity section for now, I don't know if every new lint needs to go in nursery first. The matching could be expanded to more than `Some(<value>)` to lint on arbitrary struct matching inside the `Some` but I've left it like it was for `manual_map` for now. `needless_match::pat_same_as_expr` provides a more generic match example. close rust-lang/rust-clippy#8822 changelog: Add lint [`manual_filter`] for `Option`
Configuration menu - View commit details
-
Copy full SHA for 292e313 - Browse repository at this point
Copy the full SHA 292e313View commit details -
Auto merge of rust-lang#9386 - smoelius:further-enhance-needless-borr…
…ow, r=Jarcho Further enhance `needless_borrow`, mildly refactor `redundant_clone` This PR does the following: * Moves some code from `redundant_clone` into a new `clippy_utils` module called `mir`, and wraps that code in a function called `dropped_without_further_use`. * Relaxes the "is copyable" condition condition from rust-lang#9136 by also suggesting to remove borrows from values dropped without further use. The changes involve the just mentioned function. * Separates `redundant_clone` into modules. Strictly speaking, the last bullet is independent of the others. `redundant_clone` is somewhat hairy, IMO. Separating it into modules makes it slightly less so, by helping to delineate what depends upon what. I've tried to break everything up into digestible commits. r? `@Jarcho` (`@Jarcho` I hope you don't mind.) changelog: continuation of rust-lang#9136
Configuration menu - View commit details
-
Copy full SHA for 272bbfb - Browse repository at this point
Copy the full SHA 272bbfbView commit details
Commits on Oct 9, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 8e76d66 - Browse repository at this point
Copy the full SHA 8e76d66View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3fc903e - Browse repository at this point
Copy the full SHA 3fc903eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 05dcfd9 - Browse repository at this point
Copy the full SHA 05dcfd9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7cfc6fa - Browse repository at this point
Copy the full SHA 7cfc6faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1688368 - Browse repository at this point
Copy the full SHA 1688368View commit details -
Rollup merge of rust-lang#102829 - compiler-errors:rename-impl-item-k…
…ind, r=TaKO8Ki rename `ImplItemKind::TyAlias` to `ImplItemKind::Type` The naming of this variant seems inconsistent given that this is not really a "type alias", and the associated type variant for `TraitItemKind` is just called `Type`.
Configuration menu - View commit details
-
Copy full SHA for 5ccf727 - Browse repository at this point
Copy the full SHA 5ccf727View commit details
Commits on Oct 10, 2022
-
Rollup merge of rust-lang#102275 - Urgau:stabilize-half_open_range_pa…
…tterns, r=cjgillot Stabilize `half_open_range_patterns` This PR stabilize `feature(half_open_range_patterns)`: ``` Allows using `..=X` as a pattern. ``` And adds a new `feature(half_open_range_patterns_in_slices)` for the slice part, rust-lang#102275 (comment). The FCP was completed in rust-lang#67264.
Configuration menu - View commit details
-
Copy full SHA for e7a5249 - Browse repository at this point
Copy the full SHA e7a5249View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a42219 - Browse repository at this point
Copy the full SHA 7a42219View commit details -
Rollup merge of rust-lang#99696 - WaffleLapkin:uplift, r=fee1-dead
Uplift `clippy::for_loops_over_fallibles` lint into rustc This PR, as the title suggests, uplifts [`clippy::for_loops_over_fallibles`] lint into rustc. This lint warns for code like this: ```rust for _ in Some(1) {} for _ in Ok::<_, ()>(1) {} ``` i.e. directly iterating over `Option` and `Result` using `for` loop. There are a number of suggestions that this PR adds (on top of what clippy suggested): 1. If the argument (? is there a better name for that expression) of a `for` loop is a `.next()` call, then we can suggest removing it (or rather replacing with `.by_ref()` to allow iterator being used later) ```rust for _ in iter.next() {} // turns into for _ in iter.by_ref() {} ``` 2. (otherwise) We can suggest using `while let`, this is useful for non-iterator, iterator-like things like [async] channels ```rust for _ in rx.recv() {} // turns into while let Some(_) = rx.recv() {} ``` 3. If the argument type is `Result<impl IntoIterator, _>` and the body has a `Result<_, _>` type, we can suggest using `?` ```rust for _ in f() {} // turns into for _ in f()? {} ``` 4. To preserve the original behavior and clear intent, we can suggest using `if let` ```rust for _ in f() {} // turns into if let Some(_) = f() {} ``` (P.S. `Some` and `Ok` are interchangeable depending on the type) I still feel that the lint wording/look is somewhat off, so I'll be happy to hear suggestions (on how to improve suggestions :D)! Resolves rust-lang#99272 [`clippy::for_loops_over_fallibles`]: https://rust-lang.github.io/rust-clippy/master/index.html#for_loops_over_fallibles
Configuration menu - View commit details
-
Copy full SHA for 5577e42 - Browse repository at this point
Copy the full SHA 5577e42View commit details -
Rollup merge of rust-lang#102868 - compiler-errors:rename-assoc-tyali…
…as-to-ty, r=TaKO8Ki Rename `AssocItemKind::TyAlias` to `AssocItemKind::Type` Thanks `@camsteffen` for catching this in ast too, cc rust-lang#102829 (comment)
Configuration menu - View commit details
-
Copy full SHA for 1469e8d - Browse repository at this point
Copy the full SHA 1469e8dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 178799f - Browse repository at this point
Copy the full SHA 178799fView commit details -
Auto merge of rust-lang#9610 - Jarcho:fix-9608, r=Alexendoo
Don't suggest moving tuple structs with a significant drop to late evaluation fixes rust-lang#9608 changelog: Don't suggest moving tuple structs with a significant drop to late evaluation
Configuration menu - View commit details
-
Copy full SHA for cf72565 - Browse repository at this point
Copy the full SHA cf72565View commit details -
Configuration menu - View commit details
-
Copy full SHA for c3f077c - Browse repository at this point
Copy the full SHA c3f077cView commit details -
Configuration menu - View commit details
-
Copy full SHA for bd61fdb - Browse repository at this point
Copy the full SHA bd61fdbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0cc7492 - Browse repository at this point
Copy the full SHA 0cc7492View commit details -
Configuration menu - View commit details
-
Copy full SHA for f48d13f - Browse repository at this point
Copy the full SHA f48d13fView commit details
Commits on Oct 11, 2022
-
Auto merge of rust-lang#9572 - Nilstrieb:as-ptr-cast-mut, r=dswij
Add `as_ptr_cast_mut` lint This lint detects calls to a `&self`-taking `as_ptr` method, where the result is then immediately cast to a `*mut T`. Code like this is probably invalid, as that pointer will not have write permissions, and `*mut T` is usually used to write through. Examples of broken code with this pattern: https://miri.saethlin.dev/ub?crate=lol_alloc&version=0.1.3 https://miri.saethlin.dev/ub?crate=sophon-wasm&version=0.19.0 https://miri.saethlin.dev/ub?crate=polars-core&version=0.24.2 https://miri.saethlin.dev/ub?crate=ach-cell&version=0.1.17 changelog: Add [`as_ptr_cast_mut`]
Configuration menu - View commit details
-
Copy full SHA for 8e87d39 - Browse repository at this point
Copy the full SHA 8e87d39View commit details -
Auto merge of rust-lang#9616 - unvalley:add-default-to-lint-groups, r…
…=xFrednet Add Default to Clippy Lints Lint groups - related to rust-lang#7958 This PR adds a default (reset) button to Clippy Lints Lint groups. (change for website) [The page](https://rust-lang.github.io/rust-clippy/master/index.html) sets only `Deprecated` to false by default. Certainly it is easy to set only `deprecated` to false, but it may be a bit lazy for beginners. https://user-images.githubusercontent.com/38400669/194831117-3ade7e0d-c4de-4189-9daf-3be8ea3cdd18.mov changelog: none
Configuration menu - View commit details
-
Copy full SHA for 122ae22 - Browse repository at this point
Copy the full SHA 122ae22View commit details -
Auto merge of rust-lang#9629 - est31:let_else, r=Jarcho
Replace manual let else patterns with let else Clears the codebase from places where the lint added by rust-lang#8437 is firing, by adopting let else. changelog: none
Configuration menu - View commit details
-
Copy full SHA for 854015c - Browse repository at this point
Copy the full SHA 854015cView commit details
Commits on Oct 12, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 74ba7e1 - Browse repository at this point
Copy the full SHA 74ba7e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac6d2ba - Browse repository at this point
Copy the full SHA ac6d2baView commit details -
Auto merge of rust-lang#9605 - nyurik:fix-inline-edition, r=llogiq
fix: uninlined_format_args shouldn't inline panic! before 2021ed Before 2021 edition, `panic!("...")` was not treated as a format string. Clippy autofix of `panic!("{}", foo)` into `panic!("{foo}")` is incorrect. changelog: [`uninlined_format_args`]: Do not inline panic! macros before 2021 edition
Configuration menu - View commit details
-
Copy full SHA for 2d58817 - Browse repository at this point
Copy the full SHA 2d58817View commit details -
Configuration menu - View commit details
-
Copy full SHA for 31006b4 - Browse repository at this point
Copy the full SHA 31006b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for e4c80f2 - Browse repository at this point
Copy the full SHA e4c80f2View commit details -
Auto merge of rust-lang#9633 - royrustdev:fix_rc_buffer, r=llogiq
update Applicability of `rc_buffer` lint from `MachineApplicable` to `Unspecified` `Unspecified` This changes `rc_buffer` from MachineApplicable to Unspecified ``` changelog: change [`rc_buffer`] to Unspecified. ``` fixes rust-lang#6241 --- changelog: change [`rc_buffer`] to Unspecified.
Configuration menu - View commit details
-
Copy full SHA for 6354d12 - Browse repository at this point
Copy the full SHA 6354d12View commit details -
Auto merge of rust-lang#9617 - llogiq:cast-nan-to-int, r=Alexendoo
add `cast-nan-to-int` lint This fixes rust-lang#371. r? `@Alexendoo` --- changelog: add [`cast-nan-to-int`] lint
Configuration menu - View commit details
-
Copy full SHA for b8a9a50 - Browse repository at this point
Copy the full SHA b8a9a50View commit details -
Configuration menu - View commit details
-
Copy full SHA for 524ec2e - Browse repository at this point
Copy the full SHA 524ec2eView commit details -
Auto merge of rust-lang#9627 - Jarcho:ice-9625, r=xFrednet
Use the correct type when comparing nested constants. fixes rust-lang#9625 changelog: `manual_range_contains`: fix ICE when the values are behind a reference
Configuration menu - View commit details
-
Copy full SHA for 45dd9f3 - Browse repository at this point
Copy the full SHA 45dd9f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for e51e930 - Browse repository at this point
Copy the full SHA e51e930View commit details -
refactor
default_numeric_fallback
We only need to store if the literal binding has an explicit type bound or not
Configuration menu - View commit details
-
Copy full SHA for 36b2685 - Browse repository at this point
Copy the full SHA 36b2685View commit details -
Fix to_string_in_format_args in parens
Fix suggestions like ``` print!("error: something failed at {}", (Location::caller().to_string())); ``` where the parenthesis enclose some portion of the value.
Configuration menu - View commit details
-
Copy full SHA for 7717904 - Browse repository at this point
Copy the full SHA 7717904View commit details -
Auto merge of rust-lang#9590 - nyurik:fix-parens, r=Alexendoo
Fix to_string_in_format_args in parens Fix suggestions like ``` print!("error: something failed at {}", (Location::caller().to_string())); ``` where the parenthesis enclose some portion of the value. Fixes rust-lang#9540 changelog: [`to_string_in_format_args`]: fix incorrect fix when value is enclosed in parenthesis
Configuration menu - View commit details
-
Copy full SHA for 42bdfa2 - Browse repository at this point
Copy the full SHA 42bdfa2View commit details
Commits on Oct 13, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 124caeb - Browse repository at this point
Copy the full SHA 124caebView commit details -
Auto merge of rust-lang#9600 - nyurik:inline-fmt-style, r=llogiq
Change uninlined_format_args into a style lint As [previously discussed](rust-lang/rust-clippy#9233 (comment)), the `uninlined_format_args` should probably be a part of the default style because `println!("{}", foo)` is not as concise or easy to understand as `println!("{foo}")` changelog: [`uninlined_format_args`]: change to be the default `style`
Configuration menu - View commit details
-
Copy full SHA for 58ef56e - Browse repository at this point
Copy the full SHA 58ef56eView commit details -
Auto merge of rust-lang#9584 - royrustdev:implicit_saturating_sub, r=…
…llogiq add tests in `implicit_saturating_sub` lint This adds more tests to the `implicit_saturating_sub` lint to rule out certain false positives that have appeared in the past. Now with those false positives out of the equation, we can move the lint to `style`. --- changelog: promote [`implicit-saturating-sub`] to the `style` category
Configuration menu - View commit details
-
Copy full SHA for fe3200c - Browse repository at this point
Copy the full SHA fe3200cView commit details -
Auto merge of rust-lang#9640 - Alexendoo:edition-revisions, r=llogiq
Fix edition revision ui tests rust-lang#9605 had me wondering how the edition revision tests were working for `manual_assert` but not for `@nyurik,` but it turns out `manual_assert`'s tests weren't working either. I checked how `rust-lang/rust` does it and apparently it comes down to whitespace, `//[rev] edition:X` works 😬 Removes the revisions from `match_wild_err_arm` as I couldn't find any edition dependant behaviour there r? `@llogiq` changelog: none
Configuration menu - View commit details
-
Copy full SHA for 4e89ffa - Browse repository at this point
Copy the full SHA 4e89ffaView commit details -
Configuration menu - View commit details
-
Copy full SHA for a31462a - Browse repository at this point
Copy the full SHA a31462aView commit details -
Auto merge of rust-lang#9641 - Alexendoo:sparse-registry, r=flip1995
Enable cargo sparse registry in CI https://blog.rust-lang.org/2022/06/22/sparse-registry-testing.html The initial registry update takes around 1 minute currently, so this gives quite a nice speed boost to CI build times r? `@flip1995` changelog: none
Configuration menu - View commit details
-
Copy full SHA for 9a6eca5 - Browse repository at this point
Copy the full SHA 9a6eca5View commit details
Commits on Oct 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 135a273 - Browse repository at this point
Copy the full SHA 135a273View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f50e6f - Browse repository at this point
Copy the full SHA 4f50e6fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 950f5fa - Browse repository at this point
Copy the full SHA 950f5faView commit details -
Auto merge of rust-lang#9644 - hkBst:patch-1, r=flip1995
add missing comma changelog: none
Configuration menu - View commit details
-
Copy full SHA for 8e0da62 - Browse repository at this point
Copy the full SHA 8e0da62View commit details -
Auto merge of rust-lang#9643 - icecream17:patch-1, r=flip1995
Book: Small grammar + link a11y change *Please write a short comment explaining your change (or "none" for internal only changes)* changelog: none --- Very minor For the link accessibility change, `here` and related don't provide context for screen readers who are reading a list of links. (Random supporting google links) https://www.w3.org/QA/Tips/noClickHere https://usability.yale.edu/web-accessibility/articles/links
Configuration menu - View commit details
-
Copy full SHA for efa361b - Browse repository at this point
Copy the full SHA efa361bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 344b7bc - Browse repository at this point
Copy the full SHA 344b7bcView commit details -
Auto merge of rust-lang#9645 - Jarcho:ptr_arg_9542, r=llogiq
Don't lint `ptr_arg` when used as an incompatible trait object fixes rust-lang#9542 changelog: [`ptr_arg`](https://rust-lang.github.io/rust-clippy/master/#ptr_arg): Don't lint when used as an incompatible trait object
Configuration menu - View commit details
-
Copy full SHA for b510557 - Browse repository at this point
Copy the full SHA b510557View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b8df8d - Browse repository at this point
Copy the full SHA 4b8df8dView commit details
Commits on Oct 15, 2022
-
Auto merge of rust-lang#9649 - Alexendoo:from-over-into-suggestion, r…
…=llogiq Add a suggestion and a note about orphan rules for `from_over_into` Adds a machine applicable suggestion to convert the `Into` impl into a `From` one to `from_over_into` Also adds a note explaining that `impl From<Local> for Foreign` is fine if the `Into` type is foreign Closes rust-lang#7444 Addresses half of rust-lang#9638 changelog: [`from_over_into`] Add a suggestion and a note about orphan rules
Configuration menu - View commit details
-
Copy full SHA for 50f192f - Browse repository at this point
Copy the full SHA 50f192fView commit details -
Configuration menu - View commit details
-
Copy full SHA for dfd3525 - Browse repository at this point
Copy the full SHA dfd3525View commit details -
Configuration menu - View commit details
-
Copy full SHA for c84ac4c - Browse repository at this point
Copy the full SHA c84ac4cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8611a0b - Browse repository at this point
Copy the full SHA 8611a0bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e5e356 - Browse repository at this point
Copy the full SHA 2e5e356View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5dc54c6 - Browse repository at this point
Copy the full SHA 5dc54c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for d38175f - Browse repository at this point
Copy the full SHA d38175fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e3342a - Browse repository at this point
Copy the full SHA 2e3342aView commit details -
Configuration menu - View commit details
-
Copy full SHA for f8ae2f5 - Browse repository at this point
Copy the full SHA f8ae2f5View commit details
Commits on Oct 16, 2022
-
Auto merge of rust-lang#9655 - llogiq:unbox-default, r=dswij
fix `box-default` linting `no_std` non-boxes This fixes rust-lang#9653 by doing the check against the `Box` type correctly even if `Box` isn't there, as in `no_std` code. Thanks to `@lukas-code` for opening the issue and supplying a reproducer! --- changelog: none
Configuration menu - View commit details
-
Copy full SHA for ff33d6e - Browse repository at this point
Copy the full SHA ff33d6eView commit details -
Auto merge of rust-lang#9636 - kraktus:numeric-fallback, r=dswij
[`default_numeric_fallback`] do not lint on constants fix rust-lang/rust-clippy#9632 changelog:[`default_numeric_fallback`] do not lint on constants
Configuration menu - View commit details
-
Copy full SHA for eba5ff9 - Browse repository at this point
Copy the full SHA eba5ff9View commit details -
Auto merge of rust-lang#9566 - smoelius:diagnostic-item-path, r=dswij
Expand internal lint `unnecessary_def_path` This PR does essentially two things: * Separates the internal lints into modules by pass. (`internal_lints.rs` was over 1400 lines, which is a little unruly IMHO.) * ~Adds a new~ Expands the `unnecessary_def_path` internal lint to flag hardcoded paths to diagnostic and language items. My understanding is that the latter is currently done by reviewers. Automating this process should make things easier for both reviewers and contributors. I could make the first bullet a separate PR, or remove it entirely, if desired. changelog: Add internal lint `diagnostic_item_path`
Configuration menu - View commit details
-
Copy full SHA for 332b5b3 - Browse repository at this point
Copy the full SHA 332b5b3View commit details -
Add new lint
partial_pub_fields
Signed-off-by: TennyZhuang <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7ac97b6 - Browse repository at this point
Copy the full SHA 7ac97b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for b10882a - Browse repository at this point
Copy the full SHA b10882aView commit details -
Configuration menu - View commit details
-
Copy full SHA for abd5db3 - Browse repository at this point
Copy the full SHA abd5db3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 360b48b - Browse repository at this point
Copy the full SHA 360b48bView commit details -
Auto merge of rust-lang#9658 - TennyZhuang:partial-pub-fields, r=llogiq
Add new lint `partial_pub_fields` Signed-off-by: TennyZhuang <[email protected]> *Please write a short comment explaining your change (or "none" for internal only changes)* changelog: `partial_pub_fields`: new lint to disallow partial fields of a struct be pub Resolve rust-lang#9604
Configuration menu - View commit details
-
Copy full SHA for d917590 - Browse repository at this point
Copy the full SHA d917590View commit details -
Auto merge of rust-lang#9652 - kraktus:octo_89, r=xFrednet
[`zero_prefixed_literal`] Do not advise to use octal form if not possible fix rust-lang/rust-clippy#9651 changelog: [`zero_prefixed_literal`] Do not advise to use octal form if not possible
Configuration menu - View commit details
-
Copy full SHA for 34142fd - Browse repository at this point
Copy the full SHA 34142fdView commit details
Commits on Oct 17, 2022
-
Auto merge of rust-lang#9609 - kraktus:hexa_f32, r=giraffate
[`unnecessary_cast`] Do not lint negative hexadecimal literals when cast as floats fix rust-lang/rust-clippy#9603 changelog: [`unnecessary_cast`] Do not lint negative hexadecimal literals when cast as floats
Configuration menu - View commit details
-
Copy full SHA for 4eaf543 - Browse repository at this point
Copy the full SHA 4eaf543View commit details -
Configuration menu - View commit details
-
Copy full SHA for 136c2cd - Browse repository at this point
Copy the full SHA 136c2cdView commit details -
Auto merge of rust-lang#9637 - Alexendoo:unused-format-specs, r=xFrednet
Add `unused_format_specs` lint Currently catches two cases: An empty precision specifier: ```rust // the same as {} println!("{:.}", x); ``` And using formatting specs on `format_args!()`: ```rust // prints `x.`, not `x .` println("{:5}.", format_args!("x")); ``` changelog: new lint: [`unused_format_specs`]
Configuration menu - View commit details
-
Copy full SHA for 502e87c - Browse repository at this point
Copy the full SHA 502e87cView commit details
Commits on Oct 19, 2022
-
Update Applicability of
redundant_allocation
lint from`MachineApplicable` to `Unspecified`
Configuration menu - View commit details
-
Copy full SHA for 1da1ff6 - Browse repository at this point
Copy the full SHA 1da1ff6View commit details -
Auto merge of rust-lang#9634 - royrustdev:fix_redundant_allocation, r…
…=Manishearth Update Applicability of `redundant_allocation` lint from `MachineApplicable` to `MaybeIncorrect` This changes `redundant_allocation` lint from MachineApplicable to MaybeIncorrect ``` changelog: [`redundant_allocation]: Change Applicability from MachineApplicable to MaybeIncorrect ``` fixes rust-lang#6243 --- changelog: [`redundant_allocation`]: Change Applicability from MachineApplicable to MaybeIncorrect
Configuration menu - View commit details
-
Copy full SHA for 1afc7e2 - Browse repository at this point
Copy the full SHA 1afc7e2View commit details
Commits on Oct 20, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b6a860e - Browse repository at this point
Copy the full SHA b6a860eView commit details -
Configuration menu - View commit details
-
Copy full SHA for fb8ecb9 - Browse repository at this point
Copy the full SHA fb8ecb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ff2364 - Browse repository at this point
Copy the full SHA 4ff2364View commit details -
Auto merge of rust-lang#9680 - flip1995:rustup, r=flip1995
Rustup r? `@ghost` I ran out of time and will have to do the Clippy->Rust sync tomorrow. changelog: none
Configuration menu - View commit details
-
Copy full SHA for a4e8726 - Browse repository at this point
Copy the full SHA a4e8726View commit details -
Auto merge of rust-lang#9670 - Alexendoo:missing-trait-methods, r=Jarcho
Add `missing_trait_methods` lint Closes rust-lang#9661 changelog: new lint: [`missing_trait_methods`]
Configuration menu - View commit details
-
Copy full SHA for 4612fdf - Browse repository at this point
Copy the full SHA 4612fdfView commit details -
Auto merge of rust-lang#9635 - smoelius:fix-9386-bug, r=Jarcho
Fix bug introduced by rust-lang#9386 rust-lang#9386 introduced a potential out-of-bounds array access. Specifically, a location returned by `local_assignments` could have [`location.statement_index` equal to `mir.basic_blocks[location.block].statements.len()`](https://github.com/rust-lang/rust-clippy/blob/b8a9a507bf9e3149d287841454842116c72d66c4/clippy_utils/src/mir/mod.rs#L129), in which case the location would refer to the block terminator: https://github.com/rust-lang/rust-clippy/blob/b8a9a507bf9e3149d287841454842116c72d66c4/clippy_lints/src/dereference.rs#L1204-L1206 I suspect the bug is not triggerable now, because of checks leading up to where it occurs. But a future code change could make it triggerable. Hence, it should be fixed. r? `@Jarcho` changelog: none
Configuration menu - View commit details
-
Copy full SHA for 967f172 - Browse repository at this point
Copy the full SHA 967f172View commit details
Commits on Oct 21, 2022
-
ref_option_ref
do not lint when inner reference is mutableAs it makes the `Option` Non Copy
Configuration menu - View commit details
-
Copy full SHA for 615b761 - Browse repository at this point
Copy the full SHA 615b761View commit details -
Configuration menu - View commit details
-
Copy full SHA for 487c6fc - Browse repository at this point
Copy the full SHA 487c6fcView commit details -
Auto merge of rust-lang#9685 - kraktus:collapsible_match, r=llogiq
[`collapsible_match`] specify field name when destructuring structs changelog: [`collapsible_match`] specify field name when destructuring structs fix rust-lang/rust-clippy#9647 I wasn't the sure about the best way to convey the message in the lint message since it does not use suggestion. Because I liked the former output highlighting both spans, I've left it as before, only modifying the span label.
Configuration menu - View commit details
-
Copy full SHA for b2e5a71 - Browse repository at this point
Copy the full SHA b2e5a71View commit details -
Auto merge of rust-lang#9684 - kraktus:ref_option_ref, r=xFrednet
`ref_option_ref` do not lint when inner reference is mutable changelog: FP: [`ref_option_ref`]: No longer lints if the inner reference is mutable fix rust-lang/rust-clippy#9682
Configuration menu - View commit details
-
Copy full SHA for b72e451 - Browse repository at this point
Copy the full SHA b72e451View commit details -
Configuration menu - View commit details
-
Copy full SHA for 815876d - Browse repository at this point
Copy the full SHA 815876dView commit details
Commits on Oct 22, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 5c6c353 - Browse repository at this point
Copy the full SHA 5c6c353View commit details -
Configuration menu - View commit details
-
Copy full SHA for e38bb1a - Browse repository at this point
Copy the full SHA e38bb1aView commit details -
Configuration menu - View commit details
-
Copy full SHA for bbee1c9 - Browse repository at this point
Copy the full SHA bbee1c9View commit details -
Auto merge of rust-lang#9691 - smoelius:lint-lintcheck, r=llogiq
Add `lintcheck` to packages linted by `dogfood` test Currently, `lintcheck` is not checked by the `dogfood` test. I assume that is not intentional. If it is intentional, then this PR can be ignored. changelog: Add `lintcheck` to packages linted by `dogfood` test
Configuration menu - View commit details
-
Copy full SHA for b62ef60 - Browse repository at this point
Copy the full SHA b62ef60View commit details
Commits on Oct 23, 2022
-
Auto merge of rust-lang#9688 - Alexendoo:msrv-tests, r=Manishearth
Move MSRV tests into the lint specific test files There are currently two ways MSRV tests are done in the ui test suite, adding a case to the `#![clippy::msrv = "1.0"]` `tests/ui/min_rust_version_attr.rs` or adding the two `msrv_1_xx` functions to the test file of the lint in question This updates the clippy book to suggest the `msrv_1_xx` style, and replaces the tests in `tests/ui/min_rust_version_attr.rs` with ones of that style Almost the entire diff is just moving stuff around as a result, I made sure to check the line numbers the lints are emitted at correspond with the right `msrv` case, so feel free to only skim that part changelog: none
Configuration menu - View commit details
-
Copy full SHA for 28cd1ec - Browse repository at this point
Copy the full SHA 28cd1ecView commit details -
Auto merge of rust-lang#9622 - llogiq:box-dyn-default, r=Alexendoo
fix `box-default` ignoring trait objects' types This avoids removing the turbofish when the `Box` type is a `dyn` or `impl _`. This fixes rust-lang#9621. --- changelog: none
Configuration menu - View commit details
-
Copy full SHA for 4f142aa - Browse repository at this point
Copy the full SHA 4f142aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for da9755b - Browse repository at this point
Copy the full SHA da9755bView commit details