Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Clippy #83480

Merged
merged 140 commits into from
Mar 26, 2021
Merged

Update Clippy #83480

merged 140 commits into from
Mar 26, 2021

Commits on Feb 26, 2021

  1. upper_case_acronyms: don't warn on public items

    Fixes rust-lang#6803
    
    changelog: upper_case_acronyms: ignore public items
    matthiaskrgr committed Feb 26, 2021
    Configuration menu
    Copy the full SHA
    9dba6a9 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2021

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

Commits on Mar 8, 2021

  1. Configuration menu
    Copy the full SHA
    f2a85cb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0327c2e View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2021

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

Commits on Mar 12, 2021

  1. wrong_self_convention: fix lint in case of to_*_mut method

    When a method starts with `to_` and ends with `_mut`, it should expect a `&mut self` parameter,
    otherwise `&self`.
    mgacek8 committed Mar 12, 2021
    Configuration menu
    Copy the full SHA
    2547edb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    11d2af7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f2f2a00 View commit details
    Browse the repository at this point in the history
  4. 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.
    flip1995 committed Mar 12, 2021
    Configuration menu
    Copy the full SHA
    a189df1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    93ee80a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6bc5fe4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c86ba7f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    41be515 View commit details
    Browse the repository at this point in the history
  9. 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`
    bors committed Mar 12, 2021
    Configuration menu
    Copy the full SHA
    d219888 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2021

  1. 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`
    bors committed Mar 13, 2021
    Configuration menu
    Copy the full SHA
    65d046c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6d2236f View commit details
    Browse the repository at this point in the history
  3. Make explicit_deref_methods check for multiple deref calls

    Fix 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
    Jarcho committed Mar 13, 2021
    Configuration menu
    Copy the full SHA
    a261bc5 View commit details
    Browse the repository at this point in the history
  4. Remove unneeded code.

    Jarcho committed Mar 13, 2021
    Configuration menu
    Copy the full SHA
    1666e43 View commit details
    Browse the repository at this point in the history
  5. Keep track of whether deref or deref_mut was called

    Remove more unnecessary code
    Jarcho committed Mar 13, 2021
    Configuration menu
    Copy the full SHA
    704f7a8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2713ad4 View commit details
    Browse the repository at this point in the history
  7. 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
    bors committed Mar 13, 2021
    Configuration menu
    Copy the full SHA
    28759b2 View commit details
    Browse the repository at this point in the history
  8. 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()`
    bors committed Mar 13, 2021
    Configuration menu
    Copy the full SHA
    92b9677 View commit details
    Browse the repository at this point in the history
  9. 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`
    bors committed Mar 13, 2021
    Configuration menu
    Copy the full SHA
    781de34 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2021

  1. Configuration menu
    Copy the full SHA
    1054eb0 View commit details
    Browse the repository at this point in the history
  2. 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.
    bors committed Mar 14, 2021
    Configuration menu
    Copy the full SHA
    52c25e9 View commit details
    Browse the repository at this point in the history
  3. Fix suspicious_map false positives

    mathstuf authored and camsteffen committed Mar 14, 2021
    Configuration menu
    Copy the full SHA
    ecf0c76 View commit details
    Browse the repository at this point in the history
  4. Add fake_read() to clippy

    roxelo committed Mar 14, 2021
    Configuration menu
    Copy the full SHA
    0ab2bcd View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2021

  1. Configuration menu
    Copy the full SHA
    f7c5742 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1d57c3e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    59dba04 View commit details
    Browse the repository at this point in the history
  4. 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
    bors committed Mar 15, 2021
    Configuration menu
    Copy the full SHA
    0e042d2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7926664 View commit details
    Browse the repository at this point in the history
  6. Fix error after rebase

    roxelo committed Mar 15, 2021
    Configuration menu
    Copy the full SHA
    9d5daa6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    eb7f8d6 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6fc52a6 View commit details
    Browse the repository at this point in the history
  9. Update clippy tests

    petrochenkov committed Mar 15, 2021
    Configuration menu
    Copy the full SHA
    09a9ea6 View commit details
    Browse the repository at this point in the history
  10. 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.
    bors committed Mar 15, 2021
    Configuration menu
    Copy the full SHA
    9cd0f50 View commit details
    Browse the repository at this point in the history
  11. 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`.
    bors committed Mar 15, 2021
    Configuration menu
    Copy the full SHA
    0929a24 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2021

  1. Auto merge of rust-lang#6914 - camsteffen:source-utils, r=Manishearth

    Move some utils to `clippy_utils::source`
    
    changelog: none
    
    Continues rust-lang#6907
    bors committed Mar 16, 2021
    Configuration menu
    Copy the full SHA
    d7a2311 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1c3a3e7 View commit details
    Browse the repository at this point in the history
  3. 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
    bors committed Mar 16, 2021
    Configuration menu
    Copy the full SHA
    99ecb61 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ecbef77 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    37bffb7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d17f545 View commit details
    Browse the repository at this point in the history
  7. Move unit_cmp to its own module

    Y-Nak committed Mar 16, 2021
    Configuration menu
    Copy the full SHA
    1bb2212 View commit details
    Browse the repository at this point in the history
  8. Move unit_arg to its own module

    Y-Nak committed Mar 16, 2021
    Configuration menu
    Copy the full SHA
    6211b49 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5a439f5 View commit details
    Browse the repository at this point in the history
  10. 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
    bors committed Mar 16, 2021
    Configuration menu
    Copy the full SHA
    c701c30 View commit details
    Browse the repository at this point in the history
  11. 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
    bors committed Mar 16, 2021
    Configuration menu
    Copy the full SHA
    1a206fc View commit details
    Browse the repository at this point in the history
  12. 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.
    petrochenkov committed Mar 16, 2021
    Configuration menu
    Copy the full SHA
    35e8be7 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    e72d283 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    c5b3a71 View commit details
    Browse the repository at this point in the history
  15. Fix typo

    MysteryJump committed Mar 16, 2021
    Configuration menu
    Copy the full SHA
    aa5f1f9 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    bdf2dce View commit details
    Browse the repository at this point in the history
  17. Auto merge of rust-lang#6912 - flip1995:dep-cleanup, r=Manishearth

    Get rid of some unused dependecies
    
    changelog: none
    bors committed Mar 16, 2021
    Configuration menu
    Copy the full SHA
    5b3e61d View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    02ceeb5 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    4450c21 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    4c10471 View commit details
    Browse the repository at this point in the history
  21. Add suggestion to write_literal and print_literal

    Don't lint on a mixture of raw and regular strings
    Fix spans in format strings
    Jarcho committed Mar 16, 2021
    Configuration menu
    Copy the full SHA
    a7fa2a6 View commit details
    Browse the repository at this point in the history
  22. Remove SmallVec

    Jarcho committed Mar 16, 2021
    Configuration menu
    Copy the full SHA
    d45873b View commit details
    Browse the repository at this point in the history
  23. 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`
    bors committed Mar 16, 2021
    Configuration menu
    Copy the full SHA
    846d4f0 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2021

  1. 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.
    bors committed Mar 17, 2021
    Configuration menu
    Copy the full SHA
    56161b2 View commit details
    Browse the repository at this point in the history
  2. 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````
    JohnTitor authored Mar 17, 2021
    Configuration menu
    Copy the full SHA
    5476382 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3d7a84c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a62e426 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6546285 View commit details
    Browse the repository at this point in the history
  6. 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
    bors committed Mar 17, 2021
    Configuration menu
    Copy the full SHA
    a2ee849 View commit details
    Browse the repository at this point in the history
  7. 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
    bors committed Mar 17, 2021
    Configuration menu
    Copy the full SHA
    d695bfc View commit details
    Browse the repository at this point in the history
  8. 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
    bors committed Mar 17, 2021
    Configuration menu
    Copy the full SHA
    8af2884 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    0743e84 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    565400d View commit details
    Browse the repository at this point in the history
  11. 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`.
    bors committed Mar 17, 2021
    Configuration menu
    Copy the full SHA
    6595d55 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    94fb2b5 View commit details
    Browse the repository at this point in the history
  13. move chars_cmp_with_unwrap, chars_last_cmp and chars_next_cmp_with_un…

    …wrap to their own modules
    TaKO8Ki committed Mar 17, 2021
    Configuration menu
    Copy the full SHA
    058d8c8 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    c07c046 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    e578a53 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    1bec8b6 View commit details
    Browse the repository at this point in the history
  17. remove a needless variable

    TaKO8Ki committed Mar 17, 2021
    Configuration menu
    Copy the full SHA
    f0a101d View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    0c81311 View commit details
    Browse the repository at this point in the history
  19. remove unused arguments

    TaKO8Ki committed Mar 17, 2021
    Configuration menu
    Copy the full SHA
    b6597ee View commit details
    Browse the repository at this point in the history
  20. fmt

    TaKO8Ki committed Mar 17, 2021
    Configuration menu
    Copy the full SHA
    f0f7871 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    4843084 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    3d9b45d View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    62490c4 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    d380769 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    7a7fcc0 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    4d1f2bc View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    27963c8 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    602bcf3 View commit details
    Browse the repository at this point in the history
  29. 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
    Jarcho committed Mar 17, 2021
    Configuration menu
    Copy the full SHA
    0b7ab90 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    6cc9cac View commit details
    Browse the repository at this point in the history
  31. remove the use of paths

    TaKO8Ki committed Mar 17, 2021
    Configuration menu
    Copy the full SHA
    0edd5f8 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    b6a2757 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    d5a7941 View commit details
    Browse the repository at this point in the history
  34. 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.
    bors committed Mar 17, 2021
    Configuration menu
    Copy the full SHA
    56138ad View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    f468d82 View commit details
    Browse the repository at this point in the history
  36. 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
    bors committed Mar 17, 2021
    Configuration menu
    Copy the full SHA
    ba13311 View commit details
    Browse the repository at this point in the history
  37. 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.
    bors committed Mar 17, 2021
    Configuration menu
    Copy the full SHA
    b62694b View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    ea15fb2 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2021

  1. Configuration menu
    Copy the full SHA
    2c4570c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b1f89ee View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    032cdfe View commit details
    Browse the repository at this point in the history
  4. 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`
    bors committed Mar 18, 2021
    Configuration menu
    Copy the full SHA
    4d68619 View commit details
    Browse the repository at this point in the history
  5. 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
    bors committed Mar 18, 2021
    Configuration menu
    Copy the full SHA
    36aee1c View commit details
    Browse the repository at this point in the history
  6. 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.
    matthiaskrgr committed Mar 18, 2021
    Configuration menu
    Copy the full SHA
    b42ec5e View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2021

  1. 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.
    bors committed Mar 19, 2021
    Configuration menu
    Copy the full SHA
    0d2e2b5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1f2d016 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2021

  1. Configuration menu
    Copy the full SHA
    d2f0b27 View commit details
    Browse the repository at this point in the history
  2. 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
    bors committed Mar 20, 2021
    Configuration menu
    Copy the full SHA
    1d3c539 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    296751f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    00a2d7a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7d45d8a View commit details
    Browse the repository at this point in the history
  6. update const_eval_resolve

    lcnr committed Mar 20, 2021
    Configuration menu
    Copy the full SHA
    731c98b View commit details
    Browse the repository at this point in the history
  7. 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
    bors committed Mar 20, 2021
    Configuration menu
    Copy the full SHA
    478f258 View commit details
    Browse the repository at this point in the history
  8. 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
    bors committed Mar 20, 2021
    Configuration menu
    Copy the full SHA
    0bdaa77 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2021

  1. Configuration menu
    Copy the full SHA
    3ddaabc View commit details
    Browse the repository at this point in the history
  2. 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
    bors committed Mar 21, 2021
    Configuration menu
    Copy the full SHA
    f3de78e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2ffee89 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2021

  1. 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!
    bors committed Mar 22, 2021
    Configuration menu
    Copy the full SHA
    aca95aa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    45e7756 View commit details
    Browse the repository at this point in the history
  3. 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.
    bors committed Mar 22, 2021
    Configuration menu
    Copy the full SHA
    029777f View commit details
    Browse the repository at this point in the history
  4. 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)
    bors committed Mar 22, 2021
    Configuration menu
    Copy the full SHA
    2bc180e View commit details
    Browse the repository at this point in the history
  5. 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
    bors committed Mar 22, 2021
    Configuration menu
    Copy the full SHA
    b80903b View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2021

  1. Factor out eq_ty_kind

    camsteffen committed Mar 23, 2021
    Configuration menu
    Copy the full SHA
    9132dbd View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#6957 - camsteffen:eq-ty-kind, r=flip1995

    Factor out `SpanlessEq::eq_ty_kind`
    
    changelog: none
    bors committed Mar 23, 2021
    Configuration menu
    Copy the full SHA
    919a1a4 View commit details
    Browse the repository at this point in the history
  3. 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
    JulianKnodt committed Mar 23, 2021
    Configuration menu
    Copy the full SHA
    e06731b View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2021

  1. Configuration menu
    Copy the full SHA
    3b8e85a View commit details
    Browse the repository at this point in the history
  2. merge imports

    TaKO8Ki committed Mar 24, 2021
    Configuration menu
    Copy the full SHA
    2f8d71b View commit details
    Browse the repository at this point in the history
  3. 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`
    bors committed Mar 24, 2021
    Configuration menu
    Copy the full SHA
    917b538 View commit details
    Browse the repository at this point in the history
  4. Fix false positive with new_ret_no_self when returning Self with …

    …different generic arguments
    Jarcho committed Mar 24, 2021
    Configuration menu
    Copy the full SHA
    99b8a67 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6e88900 View commit details
    Browse the repository at this point in the history
  6. 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
    bors committed Mar 24, 2021
    Configuration menu
    Copy the full SHA
    4a1825a View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2021

  1. check for .to_string().into_bytes() in string_lit_to_bytes

    apply changes from review
    ebobrow committed Mar 25, 2021
    Configuration menu
    Copy the full SHA
    e9ebc27 View commit details
    Browse the repository at this point in the history
  2. 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
    bors committed Mar 25, 2021
    Configuration menu
    Copy the full SHA
    981ffa7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1f5f184 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    06940fd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    40e68e5 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#6971 - flip1995:rustup, r=flip1995

    Rustup
    
    r? `@ghost`
    
    changelog: none
    bors committed Mar 25, 2021
    Configuration menu
    Copy the full SHA
    0e87918 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ab72b5e View commit details
    Browse the repository at this point in the history
  8. Update Cargo.lock

    flip1995 committed Mar 25, 2021
    Configuration menu
    Copy the full SHA
    0f1ff45 View commit details
    Browse the repository at this point in the history