-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 #83480
Update Clippy #83480
Commits on Feb 26, 2021
-
upper_case_acronyms: don't warn on public items
Fixes rust-lang#6803 changelog: upper_case_acronyms: ignore public items
Configuration menu - View commit details
-
Copy full SHA for 9dba6a9 - Browse repository at this point
Copy the full SHA 9dba6a9View commit details
Commits on Mar 6, 2021
-
Configuration menu - View commit details
-
Copy full SHA for a672d33 - Browse repository at this point
Copy the full SHA a672d33View commit details
Commits on Mar 8, 2021
-
Configuration menu - View commit details
-
Copy full SHA for f2a85cb - Browse repository at this point
Copy the full SHA f2a85cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0327c2e - Browse repository at this point
Copy the full SHA 0327c2eView commit details
Commits on Mar 10, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 7406c12 - Browse repository at this point
Copy the full SHA 7406c12View commit details
Commits on Mar 12, 2021
-
wrong_self_convention: fix lint in case of
to_*_mut
methodWhen a method starts with `to_` and ends with `_mut`, it should expect a `&mut self` parameter, otherwise `&self`.
Configuration menu - View commit details
-
Copy full SHA for 2547edb - Browse repository at this point
Copy the full SHA 2547edbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 11d2af7 - Browse repository at this point
Copy the full SHA 11d2af7View commit details -
Configuration menu - View commit details
-
Copy full SHA for f2f2a00 - Browse repository at this point
Copy the full SHA f2f2a00View commit details -
Clippy: HACK! Fix bootstrap error
This will be removed in the next sync, once beta is at 1.52. Until then this hack avoids to put `cfg(bootstrap)` into Clippy.
Configuration menu - View commit details
-
Copy full SHA for a189df1 - Browse repository at this point
Copy the full SHA a189df1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 93ee80a - Browse repository at this point
Copy the full SHA 93ee80aView commit details -
inconsistent_struct_constructor: try to make message and lint descrip…
…tion a bit clearer
Configuration menu - View commit details
-
Copy full SHA for 6bc5fe4 - Browse repository at this point
Copy the full SHA 6bc5fe4View commit details -
Configuration menu - View commit details
-
Copy full SHA for c86ba7f - Browse repository at this point
Copy the full SHA c86ba7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 41be515 - Browse repository at this point
Copy the full SHA 41be515View commit details -
Auto merge of rust-lang#6891 - Y-Nak:use-iterator-sym, r=Manishearth
Use sym::Iterator instead of paths::ITERATOR Since `sym::Iterator` was added to diagnostic_item, it's time to remove `paths::ITERATOR`. ref: rust-lang#5393 changelog: Add `is_trait_method` to `clippy_utils` changelog: Remove `paths::ITERATOR`
Configuration menu - View commit details
-
Copy full SHA for d219888 - Browse repository at this point
Copy the full SHA d219888View commit details
Commits on Mar 13, 2021
-
Auto merge of rust-lang#6892 - matthiaskrgr:inc_struct_ctor, r=Y-Nak
inconsistent_struct_constructor: try to make message and lint description a bit clearer changelog: inconsistent_struct_constructor: try to make message and lint description a bit clearer r? `@ghost`
Configuration menu - View commit details
-
Copy full SHA for 65d046c - Browse repository at this point
Copy the full SHA 65d046cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d2236f - Browse repository at this point
Copy the full SHA 6d2236fView commit details -
Make
explicit_deref_methods
check for multiple deref callsFix suggestion for `explicit_deref_methods`. Sometimes `&**` is needed, sometimes nothing is needed. Allow `explicit_deref_methods` to trigger in a few new contexts. `explicit_deref_methods` will now consider ufcs calls
Configuration menu - View commit details
-
Copy full SHA for a261bc5 - Browse repository at this point
Copy the full SHA a261bc5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1666e43 - Browse repository at this point
Copy the full SHA 1666e43View commit details -
Keep track of whether
deref
orderef_mut
was calledRemove more unnecessary code
Configuration menu - View commit details
-
Copy full SHA for 704f7a8 - Browse repository at this point
Copy the full SHA 704f7a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2713ad4 - Browse repository at this point
Copy the full SHA 2713ad4View commit details -
Auto merge of rust-lang#6865 - Jarcho:explicit_deref_methods, r=llogiq
`explicit_deref_methods` improvements Breaking up rust-lang#6837 changelog: `explicit_deref_methods` will lint chained `deref` calls and ufcs style calls
Configuration menu - View commit details
-
Copy full SHA for 28759b2 - Browse repository at this point
Copy the full SHA 28759b2View commit details -
Auto merge of rust-lang#6820 - mgacek8:issue_6562_enhance_mem_replace…
…_with_default_with_other_ctors, r=phansch mem_replace_with_default: recognize some std library ctors fixes rust-lang#6562 changelog: mem_replace_with_default: recognize some common constructors equivalent to `Default::default()`
Configuration menu - View commit details
-
Copy full SHA for 92b9677 - Browse repository at this point
Copy the full SHA 92b9677View commit details -
Auto merge of rust-lang#6859 - magurotuna:if_then_some_else_none, r=g…
…iraffate Implement new lint: if_then_some_else_none Resolves rust-lang#6760 changelog: Added a new lint: `if_then_some_else_none`
Configuration menu - View commit details
-
Copy full SHA for 781de34 - Browse repository at this point
Copy the full SHA 781de34View commit details
Commits on Mar 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 1054eb0 - Browse repository at this point
Copy the full SHA 1054eb0View commit details -
Auto merge of rust-lang#6895 - iobtl:reformat_unnecessary_cast, r=llogiq
replace span_lint with span_lint_and_sugg along with error message fixes: rust-lang#6874 changelog: none apologies if this may not be the most idiomatic way of doing it, any advice on changes (if any) would be greatly appreciated.
Configuration menu - View commit details
-
Copy full SHA for 52c25e9 - Browse repository at this point
Copy the full SHA 52c25e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for ecf0c76 - Browse repository at this point
Copy the full SHA ecf0c76View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ab2bcd - Browse repository at this point
Copy the full SHA 0ab2bcdView commit details
Commits on Mar 15, 2021
-
Configuration menu - View commit details
-
Copy full SHA for f7c5742 - Browse repository at this point
Copy the full SHA f7c5742View commit details -
Use
rustc_interface::interface::Config::parse_sess_created
in Clippyhyd-dev committedMar 15, 2021 Configuration menu - View commit details
-
Copy full SHA for 1d57c3e - Browse repository at this point
Copy the full SHA 1d57c3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 59dba04 - Browse repository at this point
Copy the full SHA 59dba04View commit details -
Auto merge of rust-lang#6831 - camsteffen:suspicious-map, r=Y-Nak,fli…
…p1995 Fix suspicious_map false positives changelog: Fix suspicious_map false positives Fixes rust-lang#5253 Replaces rust-lang#5375
Configuration menu - View commit details
-
Copy full SHA for 0e042d2 - Browse repository at this point
Copy the full SHA 0e042d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7926664 - Browse repository at this point
Copy the full SHA 7926664View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d5daa6 - Browse repository at this point
Copy the full SHA 9d5daa6View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb7f8d6 - Browse repository at this point
Copy the full SHA eb7f8d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6fc52a6 - Browse repository at this point
Copy the full SHA 6fc52a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 09a9ea6 - Browse repository at this point
Copy the full SHA 09a9ea6View commit details -
Auto merge of rust-lang#6907 - camsteffen:ty-utils, r=flip1995
Move some utils to `clippy_utils::ty` changelog: none `clippy_utils::*` has become a giant junk drawer. This is one step to clean it up a bit. One motivation is that I believe the long import statements cause more merge conflicts.
Configuration menu - View commit details
-
Copy full SHA for 9cd0f50 - Browse repository at this point
Copy the full SHA 9cd0f50View commit details -
Auto merge of rust-lang#6828 - mgacek8:issue_6758_enhance_wrong_self_…
…convention, r=flip1995 wrong_self_convention: fix lint in case of `to_*_mut` method fixes rust-lang#6758 changelog: wrong_self_convention: fix lint in case of `to_*_mut` method. When a method starts with `to_` and ends with `_mut`, clippy expects a `&mut self` parameter, otherwise `&self`. Any feedback is welcome. I was also thinking if shouldn't we treat `to_` the same way as `as_`. Namely to accept `self` taken: `&self` or `&mut self`.
Configuration menu - View commit details
-
Copy full SHA for 0929a24 - Browse repository at this point
Copy the full SHA 0929a24View commit details
Commits on Mar 16, 2021
-
Auto merge of rust-lang#6914 - camsteffen:source-utils, r=Manishearth
Move some utils to `clippy_utils::source` changelog: none Continues rust-lang#6907
Configuration menu - View commit details
-
Copy full SHA for d7a2311 - Browse repository at this point
Copy the full SHA d7a2311View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c3a3e7 - Browse repository at this point
Copy the full SHA 1c3a3e7View commit details -
Auto merge of rust-lang#6916 - camsteffen:diagnostics-util, r=Manishe…
…arth Don't re-export `clippy_utils::diagnostics::*` changelog: none Continues rust-lang#6907
Configuration menu - View commit details
-
Copy full SHA for 99ecb61 - Browse repository at this point
Copy the full SHA 99ecb61View commit details -
Configuration menu - View commit details
-
Copy full SHA for ecbef77 - Browse repository at this point
Copy the full SHA ecbef77View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37bffb7 - Browse repository at this point
Copy the full SHA 37bffb7View commit details -
Configuration menu - View commit details
-
Copy full SHA for d17f545 - Browse repository at this point
Copy the full SHA d17f545View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1bb2212 - Browse repository at this point
Copy the full SHA 1bb2212View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6211b49 - Browse repository at this point
Copy the full SHA 6211b49View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a439f5 - Browse repository at this point
Copy the full SHA 5a439f5View commit details -
Auto merge of rust-lang#6889 - Y-Nak:refactor-unit-types, r=flip1995
Refactor unit types Ref: rust-lang#6724 r? `@flip1995` Changes: 1. Extract `unit_types` from `types` group. 2. Move lints of `unit_types` to their own modules. Notes: Other lints of `unit_types` is still scattered around the `clippy_lints`, e.g. `result_unit_err` or `option_map_unit_fn`. These should be addressed in another PR. changelog: none
Configuration menu - View commit details
-
Copy full SHA for c701c30 - Browse repository at this point
Copy the full SHA c701c30View commit details -
Auto merge of rust-lang#6915 - smoelius:docs-link, r=llogiq
Do not show docs link when lint doesn't start with "clippy::" This small change ensures that if the diagnostic functions are called from outside of Clippy, a docs link is not displayed. --- *Please write a short comment explaining your change (or "none" for internal only changes)* changelog: restrict docs links
Configuration menu - View commit details
-
Copy full SHA for 1a206fc - Browse repository at this point
Copy the full SHA 1a206fcView commit details -
ast/hir: Rename field-related structures
StructField -> FieldDef ("field definition") Field -> ExprField ("expression field", not "field expression") FieldPat -> PatField ("pattern field", not "field pattern") Also rename visiting and other methods working on them.
Configuration menu - View commit details
-
Copy full SHA for 35e8be7 - Browse repository at this point
Copy the full SHA 35e8be7View commit details -
Configuration menu - View commit details
-
Copy full SHA for e72d283 - Browse repository at this point
Copy the full SHA e72d283View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5b3a71 - Browse repository at this point
Copy the full SHA c5b3a71View commit details -
Configuration menu - View commit details
-
Copy full SHA for aa5f1f9 - Browse repository at this point
Copy the full SHA aa5f1f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for bdf2dce - Browse repository at this point
Copy the full SHA bdf2dceView commit details -
Auto merge of rust-lang#6912 - flip1995:dep-cleanup, r=Manishearth
Get rid of some unused dependecies changelog: none
Configuration menu - View commit details
-
Copy full SHA for 5b3e61d - Browse repository at this point
Copy the full SHA 5b3e61dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 02ceeb5 - Browse repository at this point
Copy the full SHA 02ceeb5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4450c21 - Browse repository at this point
Copy the full SHA 4450c21View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c10471 - Browse repository at this point
Copy the full SHA 4c10471View commit details -
Add suggestion to
write_literal
andprint_literal
Don't lint on a mixture of raw and regular strings Fix spans in format strings
Configuration menu - View commit details
-
Copy full SHA for a7fa2a6 - Browse repository at this point
Copy the full SHA a7fa2a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for d45873b - Browse repository at this point
Copy the full SHA d45873bView commit details -
Auto merge of rust-lang#82536 - sexxi-goose:handle-patterns-take-2, r…
…=nikomatsakis 2229: Handle patterns within closures correctly when `capture_disjoint_fields` is enabled This PR fixes several issues related to handling patterns within closures when `capture_disjoint_fields` is enabled. 1. Matching is always considered a use of the place, even with `_` patterns 2. Compiler ICE when capturing fields in closures through `let` assignments To do so, we - Introduced new Fake Reads - Delayed use of `Place` in favor of `PlaceBuilder` - Ensured that `PlaceBuilder` can be resolved before attempting to extract `Place` in any of the pattern matching code Closes rust-lang/project-rfc-2229/issues/27 Closes rust-lang/project-rfc-2229/issues/24 r? `@nikomatsakis`
Configuration menu - View commit details
-
Copy full SHA for 846d4f0 - Browse repository at this point
Copy the full SHA 846d4f0View commit details
Commits on Mar 17, 2021
-
Auto merge of rust-lang#6917 - MysteryJump:fix-manual-unwrap-or-const…
…-fn, r=giraffate Fix false-positive `manual_unwrap_or` inside const fn Fixes rust-lang#6898 changelog: Fix false-positive for manual_unwrap_or in const fn.
Configuration menu - View commit details
-
Copy full SHA for 56161b2 - Browse repository at this point
Copy the full SHA 56161b2View commit details -
Rollup merge of rust-lang#83092 - petrochenkov:qspan, r=estebank
More precise spans for HIR paths `Ty::assoc_item` is lowered to `<Ty>::assoc_item` in HIR, but `Ty` got span from the whole path. This PR fixes that, and adjusts some diagnostic code that relied on `Ty` having the whole path span. This is a pre-requisite for rust-lang#82868 (we cannot report suggestions like `Tr::assoc` -> `<dyn Tr>::assoc` with the current imprecise spans). r? ````@estebank````
Configuration menu - View commit details
-
Copy full SHA for 5476382 - Browse repository at this point
Copy the full SHA 5476382View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d7a84c - Browse repository at this point
Copy the full SHA 3d7a84cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a62e426 - Browse repository at this point
Copy the full SHA a62e426View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6546285 - Browse repository at this point
Copy the full SHA 6546285View commit details -
Auto merge of rust-lang#6888 - matthiaskrgr:rip_ra_setup, r=flip1995
docs: update RA setup documentation Add documentation how to get rust-analyzer to like clippys `extern crate` rustc deps. Fixes rust-lang#6883 This initially removed `cargo-dev ra_setup` but it is still needed by folks who use intellij rust, so keeping that. changelog: none
Configuration menu - View commit details
-
Copy full SHA for a2ee849 - Browse repository at this point
Copy the full SHA a2ee849View commit details -
Auto merge of rust-lang#6821 - Jarcho:write_literal_suggestion, r=fli…
…p1995 Write literal suggestion fixes: rust-lang#6768 changelog: Add suggestion to `write_literal` and `print_literal` lints changelog: Change `use_debug` to point only at the format string
Configuration menu - View commit details
-
Copy full SHA for d695bfc - Browse repository at this point
Copy the full SHA d695bfcView commit details -
Auto merge of rust-lang#6805 - matthiaskrgr:uca_nopub_6803, r=flip1995
upper_case_acronyms: don't warn on public items Fixes rust-lang#6803 changelog: upper_case_acronyms: ignore public items
Configuration menu - View commit details
-
Copy full SHA for 8af2884 - Browse repository at this point
Copy the full SHA 8af2884View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0743e84 - Browse repository at this point
Copy the full SHA 0743e84View commit details -
Configuration menu - View commit details
-
Copy full SHA for 565400d - Browse repository at this point
Copy the full SHA 565400dView commit details -
Auto merge of rust-lang#6918 - camsteffen:utils-re-export, r=flip1995
Don't re-export `clippy_utils::*` changelog: none This should wrap up the utils-related really big changes. I personally don't see any more sub-modules to be added to `clippy_utils`.
Configuration menu - View commit details
-
Copy full SHA for 6595d55 - Browse repository at this point
Copy the full SHA 6595d55View commit details -
Configuration menu - View commit details
-
Copy full SHA for 94fb2b5 - Browse repository at this point
Copy the full SHA 94fb2b5View commit details -
move chars_cmp_with_unwrap, chars_last_cmp and chars_next_cmp_with_un…
…wrap to their own modules
Configuration menu - View commit details
-
Copy full SHA for 058d8c8 - Browse repository at this point
Copy the full SHA 058d8c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for c07c046 - Browse repository at this point
Copy the full SHA c07c046View commit details -
Configuration menu - View commit details
-
Copy full SHA for e578a53 - Browse repository at this point
Copy the full SHA e578a53View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1bec8b6 - Browse repository at this point
Copy the full SHA 1bec8b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for f0a101d - Browse repository at this point
Copy the full SHA f0a101dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c81311 - Browse repository at this point
Copy the full SHA 0c81311View commit details -
Configuration menu - View commit details
-
Copy full SHA for b6597ee - Browse repository at this point
Copy the full SHA b6597eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for f0f7871 - Browse repository at this point
Copy the full SHA f0f7871View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4843084 - Browse repository at this point
Copy the full SHA 4843084View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d9b45d - Browse repository at this point
Copy the full SHA 3d9b45dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 62490c4 - Browse repository at this point
Copy the full SHA 62490c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for d380769 - Browse repository at this point
Copy the full SHA d380769View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a7fcc0 - Browse repository at this point
Copy the full SHA 7a7fcc0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d1f2bc - Browse repository at this point
Copy the full SHA 4d1f2bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 27963c8 - Browse repository at this point
Copy the full SHA 27963c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 602bcf3 - Browse repository at this point
Copy the full SHA 602bcf3View commit details -
Improvements to
match_wildcard_for_single_variants
and `wildcard_en……um_match_arm` lints Don't lint on `Result` and `Option` types. Considers `or` patterns. Considers variants prefixed with `Self` Suggestions will try to find a common prefix rather than just using the full path
Configuration menu - View commit details
-
Copy full SHA for 0b7ab90 - Browse repository at this point
Copy the full SHA 0b7ab90View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6cc9cac - Browse repository at this point
Copy the full SHA 6cc9cacView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0edd5f8 - Browse repository at this point
Copy the full SHA 0edd5f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for b6a2757 - Browse repository at this point
Copy the full SHA b6a2757View commit details -
Configuration menu - View commit details
-
Copy full SHA for d5a7941 - Browse repository at this point
Copy the full SHA d5a7941View commit details -
Auto merge of rust-lang#83188 - petrochenkov:field, r=lcnr
ast/hir: Rename field-related structures I always forget what `ast::Field` and `ast::StructField` mean despite working with AST for long time, so this PR changes the naming to less confusing and more consistent. - `StructField` -> `FieldDef` ("field definition") - `Field` -> `ExprField` ("expression field", not "field expression") - `FieldPat` -> `PatField` ("pattern field", not "field pattern") Various visiting and other methods working with the fields are renamed correspondingly too. The second commit reduces the size of `ExprKind` by boxing fields of `ExprKind::Struct` in preparation for rust-lang#80080.
Configuration menu - View commit details
-
Copy full SHA for 56138ad - Browse repository at this point
Copy the full SHA 56138adView commit details -
Configuration menu - View commit details
-
Copy full SHA for f468d82 - Browse repository at this point
Copy the full SHA f468d82View commit details -
Auto merge of rust-lang#6856 - Jarcho:manual_map_if_let, r=Manishearth
Fix `manual_map` suggestion for `if let.. else ... if let.. else` chain fixes: rust-lang#6847 changelog: Fix `manual_map` suggestion for `if let.. else ... if let.. else` chain
Configuration menu - View commit details
-
Copy full SHA for ba13311 - Browse repository at this point
Copy the full SHA ba13311View commit details -
Auto merge of rust-lang#82122 - bstrie:dep4real, r=dtolnay
Deprecate `intrinsics::drop_in_place` and `collections::Bound`, which accidentally weren't deprecated Fixes rust-lang#82080. I've taken the liberty of updating the `since` values to 1.52, since an unobservable deprecation isn't much of a deprecation (even the detailed release notes never bothered to mention these deprecations). As mentioned in the issue I'm *pretty* sure that using a type alias for `Bound` is semantically equivalent to the re-export; [the reference implies](https://doc.rust-lang.org/reference/items/type-aliases.html) that type aliases only observably differ from types when used on unit structs or tuple structs, whereas `Bound` is an enum.
Configuration menu - View commit details
-
Copy full SHA for b62694b - Browse repository at this point
Copy the full SHA b62694bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ea15fb2 - Browse repository at this point
Copy the full SHA ea15fb2View commit details
Commits on Mar 18, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 2c4570c - Browse repository at this point
Copy the full SHA 2c4570cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b1f89ee - Browse repository at this point
Copy the full SHA b1f89eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 032cdfe - Browse repository at this point
Copy the full SHA 032cdfeView commit details -
Auto merge of rust-lang#6863 - Jarcho:wild_enum_match, r=llogiq
`match_wildcard` improvements fixes: rust-lang#6604 fixes: rust-lang#5733 fixes: rust-lang#6862 rust-lang#5733 is only fixed in the normal case, if different paths are used for the variants then the same problem will occur. It's cause by `def_path_str` returning an utterly useless result. I haven't dug into why yet. For rust-lang#6604 there should be some discussion before accepting this. It's easy enough to change the message rather than disable the lint for `Option` and `Result`. changelog: Attempt to find a common path prefix for `match_wildcard_for_single_variants` and `wildcard_enum_match_arm` changelog: Don't lint op `Option` and `Result` for `match_wildcard_for_single_variants` and `wildcard_enum_match_arm` changelog: Consider `or` patterns and `Self` prefix for `match_wildcard_for_single_variants` and `wildcard_enum_match_arm`
Configuration menu - View commit details
-
Copy full SHA for 4d68619 - Browse repository at this point
Copy the full SHA 4d68619View commit details -
Auto merge of rust-lang#6928 - mgacek8:issue6675_or_fun_call_unsafe_b…
…locks, r=phansch or_fun_call: trigger on unsafe blocks fixes rust-lang#6675 changelog: or_fun_call: trigger on unsafe blocks
Configuration menu - View commit details
-
Copy full SHA for 36aee1c - Browse repository at this point
Copy the full SHA 36aee1cView commit details -
needless_question_mark: don't lint if Some(..) is inside a macro def …
…and the ? is not. The suggestion would fail to apply. Fixes rust-lang#6921 changelog: needless_question_mark: don't lint if Some(..) is inside a macro def and the ? is not.
Configuration menu - View commit details
-
Copy full SHA for b42ec5e - Browse repository at this point
Copy the full SHA b42ec5eView commit details
Commits on Mar 19, 2021
-
Auto merge of rust-lang#6935 - matthiaskrgr:qmark_marco, r=flip1995
needless_question_mark: don't lint if Some(..) is inside a macro def and the ? is not. The suggestion would fail to apply. Fixes rust-lang#6921 changelog: needless_question_mark: don't lint if Some(..) is inside a macro def and the ? is not.
Configuration menu - View commit details
-
Copy full SHA for 0d2e2b5 - Browse repository at this point
Copy the full SHA 0d2e2b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f2d016 - Browse repository at this point
Copy the full SHA 1f2d016View commit details
Commits on Mar 20, 2021
-
Configuration menu - View commit details
-
Copy full SHA for d2f0b27 - Browse repository at this point
Copy the full SHA d2f0b27View commit details -
Auto merge of rust-lang#6924 - mgacek8:issue6727_copy_types, r=llogiq
wrong_self_convention: `to_` convention respects `Copy` types fixes rust-lang#6727 changelog: wrong_self_convention: `to_` convention respects `Copy` types
Configuration menu - View commit details
-
Copy full SHA for 1d3c539 - Browse repository at this point
Copy the full SHA 1d3c539View commit details -
Configuration menu - View commit details
-
Copy full SHA for 296751f - Browse repository at this point
Copy the full SHA 296751fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 00a2d7a - Browse repository at this point
Copy the full SHA 00a2d7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d45d8a - Browse repository at this point
Copy the full SHA 7d45d8aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 731c98b - Browse repository at this point
Copy the full SHA 731c98bView commit details -
Auto merge of rust-lang#6939 - ThibsG:suggNewWithoutDefault, r=llogiq
Fix bad suggestion for generics in `new_without_default` lint Fixes bad suggestion where a type parameter was missing for `new_without_default` lint. Fixes rust-lang#6933 changelog: none
Configuration menu - View commit details
-
Copy full SHA for 478f258 - Browse repository at this point
Copy the full SHA 478f258View commit details -
Auto merge of rust-lang#6941 - ThibsG:suggMatchSingleBinding, r=llogiq
Fix bad suggestion for `match_single_binding` lint Fix a bad suggestion that needs curly braces when the target `match` is the body of an arm. Fixes rust-lang#6572 changelog: none
Configuration menu - View commit details
-
Copy full SHA for 0bdaa77 - Browse repository at this point
Copy the full SHA 0bdaa77View commit details
Commits on Mar 21, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 3ddaabc - Browse repository at this point
Copy the full SHA 3ddaabcView commit details -
Auto merge of rust-lang#6945 - ThibsG:BadSuggestionGenericsForReassig…
…nDefault, r=Manishearth Fix suggestion with generics for `field_reassign_with_default` lint Fix bad suggestion where `::` is missing after type if generics are involved Fixes rust-lang#6944 changelog: none
Configuration menu - View commit details
-
Copy full SHA for f3de78e - Browse repository at this point
Copy the full SHA f3de78eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ffee89 - Browse repository at this point
Copy the full SHA 2ffee89View commit details
Commits on Mar 22, 2021
-
Auto merge of rust-lang#6942 - mgacek8:issue_6815_search_is_none, r=l…
…logiq search_is_some: add checking for `is_none()` fixes: rust-lang#6815 changelog: search_is_some: add checking for `is_none()`. To be honest I don't know what is the process of renaming the lints. Appreciate any feedback if that needs to be handled differently. Thanks!
Configuration menu - View commit details
-
Copy full SHA for aca95aa - Browse repository at this point
Copy the full SHA aca95aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 45e7756 - Browse repository at this point
Copy the full SHA 45e7756View commit details -
Auto merge of rust-lang#6896 - TaKO8Ki:refactor-lints-in-methods-modu…
…le, r=phansch Refactor lints in methods module This PR refactors methods lints other than the lints I refactored in rust-lang/rust-clippy#6826 and moves some functions to methods/utils.rs. Basically, I follow the instruction described in rust-lang#6680. **For ease of review, I refactored step by step, keeping each commit small.** closes rust-lang/rust-clippy#6886 cc: `@phansch,` `@flip1995,` `@Y-Nak` changelog: Move lints in methods module to their own modules and some function to methods/utils.rs.
Configuration menu - View commit details
-
Copy full SHA for 029777f - Browse repository at this point
Copy the full SHA 029777fView commit details -
Auto merge of rust-lang#79278 - mark-i-m:stabilize-or-pattern, r=niko…
…matsakis Stabilize or_patterns (RFC 2535, 2530, 2175) closes rust-lang#54883 This PR stabilizes the or_patterns feature in Rust 1.53. This is blocked on the following (in order): - [x] The crater run in rust-lang#78935 (comment) - [x] The resolution of the unresolved questions and a second crater run (rust-lang#78935 (comment)) - It looks like we will need to pursue some sort of edition-based transition for `:pat`. - [x] Nomination and discussion by T-lang - [x] Implement new behavior for `:pat` based on consensus (rust-lang#80100). - [ ] An FCP on stabilization EDIT: Stabilization report is in rust-lang#79278 (comment)
Configuration menu - View commit details
-
Copy full SHA for 2bc180e - Browse repository at this point
Copy the full SHA 2bc180eView commit details -
Auto merge of rust-lang#6950 - Sciencentistguy:master, r=phansch
Ignore str::len() in or_fun_call lint. changelog: Changed `or_fun_call` to ignore `str::len`, in the same way it ignores `slice::len` and `array::len` Closes rust-lang#6943
Configuration menu - View commit details
-
Copy full SHA for b80903b - Browse repository at this point
Copy the full SHA b80903bView commit details
Commits on Mar 23, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 9132dbd - Browse repository at this point
Copy the full SHA 9132dbdView commit details -
Auto merge of rust-lang#6957 - camsteffen:eq-ty-kind, r=flip1995
Factor out `SpanlessEq::eq_ty_kind` changelog: none
Configuration menu - View commit details
-
Copy full SHA for 919a1a4 - Browse repository at this point
Copy the full SHA 919a1a4View commit details -
Add has_default to GenericParamDefKind::Const
This currently creates a field which is always false on GenericParamDefKind for future use when consts are permitted to have defaults Update const_generics:default locations Previously just ignored them, now actually do something about them. Fix using type check instead of value Add parsing This adds all the necessary changes to lower const-generics defaults from parsing. Change P<Expr> to AnonConst This matches the arguments passed to instantiations of const generics, and makes it specific to just anonymous constants. Attempt to fix lowering bugs
Configuration menu - View commit details
-
Copy full SHA for e06731b - Browse repository at this point
Copy the full SHA e06731bView commit details
Commits on Mar 24, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 3b8e85a - Browse repository at this point
Copy the full SHA 3b8e85aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f8d71b - Browse repository at this point
Copy the full SHA 2f8d71bView commit details -
Auto merge of rust-lang#6962 - TaKO8Ki:fix-false-positive-in-manual-f…
…latten, r=llogiq Fix false positive in `manual_flatten` This pull request fixes false positive in `manual_flatten` in case using a slice of references . closes: rust-lang#6893 changelog: fix false positive in `manual_flatten`
Configuration menu - View commit details
-
Copy full SHA for 917b538 - Browse repository at this point
Copy the full SHA 917b538View commit details -
Fix false positive with
new_ret_no_self
when returningSelf
with ……different generic arguments
Configuration menu - View commit details
-
Copy full SHA for 99b8a67 - Browse repository at this point
Copy the full SHA 99b8a67View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e88900 - Browse repository at this point
Copy the full SHA 6e88900View commit details -
Auto merge of rust-lang#6952 - Jarcho:new_ret_no_self_fp, r=Manishearth
Fix `new_ret_no_self` false positive fixes: rust-lang#1724 changelog: Fix false positive with `new_ret_no_self` when returning `Self` with different generic arguments
Configuration menu - View commit details
-
Copy full SHA for 4a1825a - Browse repository at this point
Copy the full SHA 4a1825aView commit details
Commits on Mar 25, 2021
-
check for
.to_string().into_bytes()
in string_lit_to_bytesapply changes from review
Configuration menu - View commit details
-
Copy full SHA for e9ebc27 - Browse repository at this point
Copy the full SHA e9ebc27View commit details -
Auto merge of rust-lang#6959 - ebobrow:iss-6927-fix, r=camsteffen
Check for `.to_string().into_bytes()` in string_lit_to_bytes fixes rust-lang#6927 changelog: Add a check for `into_bytes()` to string_lit_to_bytes lint
Configuration menu - View commit details
-
Copy full SHA for 981ffa7 - Browse repository at this point
Copy the full SHA 981ffa7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f5f184 - Browse repository at this point
Copy the full SHA 1f5f184View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06940fd - Browse repository at this point
Copy the full SHA 06940fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 40e68e5 - Browse repository at this point
Copy the full SHA 40e68e5View commit details -
Auto merge of rust-lang#6971 - flip1995:rustup, r=flip1995
Rustup r? `@ghost` changelog: none
Configuration menu - View commit details
-
Copy full SHA for 0e87918 - Browse repository at this point
Copy the full SHA 0e87918View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab72b5e - Browse repository at this point
Copy the full SHA ab72b5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f1ff45 - Browse repository at this point
Copy the full SHA 0f1ff45View commit details