about summary refs log tree commit diff
path: root/clippy_lints/src/methods
AgeCommit message (Expand)AuthorLines
2025-02-20Remove obsolete comment and simplify codeSamuel Tardieu-20/+14
2025-02-20Merge remote-tracking branch 'upstream/master' into rustupPhilipp Krones-114/+312
2025-02-19`.last()` to `.next_back()` requires a mutable receiver (#14140)Catherine Flores-8/+41
2025-02-19`double_ended_iterator_last`: note when drop order is changedSamuel Tardieu-0/+7
2025-02-18`.last()` to `.next_back()` requires a mutable receiverSamuel Tardieu-8/+34
2025-02-18Move methods from `Map` to `TyCtxt`, part 2.Nicholas Nethercote-2/+1
2025-02-17Overhaul the `intravisit::Map` trait.Nicholas Nethercote-8/+8
2025-02-17Move some `Map` methods onto `TyCtxt`.Nicholas Nethercote-39/+39
2025-02-16add `manual_contains` lintlapla-cogito-0/+143
2025-02-13`unnecessary_map_or`: do not consume the non-`Copy` comparison valueSamuel Tardieu-2/+4
2025-02-12New lint: `unbuffered_bytes`jonathan-0/+61
2025-02-11`{expect,unwrap}_used`: add options to lint at compilation timeSamuel Tardieu-1/+15
2025-02-11Use MIR body to identify more "default equivalent" callsEsteban Küber-1/+1
2025-02-09Fix `obfuscated_if_else` suggestion on left side of a binary expr (#14124)Alejandra González-0/+12
2025-02-09Fix `obfuscated_if_else` suggestion on left side of a binary exprSamuel Tardieu-0/+12
2025-02-08autofix for `range_zip_with_len` (#14136)dswij-6/+7
2025-02-07clippy: directly use rustc_abi instead of reexportsJubilee Young-1/+2
2025-02-07Deprecate redundant lint `option_map_or_err_ok` and take `manual_ok_or` out o...dswij-70/+1
2025-02-07`useless_asref`: no lint if in a closure to change the ref depth (#14090)Catherine Flores-6/+13
2025-02-07[`path_buf_push_overwrite`]: mark suggestion as `MaybeIncorrect` (#14010)Catherine Flores-1/+1
2025-02-07Simplify `reindent_multiline()` signature (#14101)Timo-11/+8
2025-02-06Merge commit '3e3715c31236bff56f1c63a1de2c7bbdfcfb0923' into clippy-subtree-u...Philipp Krones-34/+193
2025-02-06Merge remote-tracking branch 'upstream/master' into rustupPhilipp Krones-35/+195
2025-02-03Simplify `reindent_multiline()` signatureSamuel Tardieu-11/+8
2025-02-02autofix for `range_zip_with_len`lapla-cogito-6/+7
2025-02-02Convert two `rustc_middle::lint` functions to `Span` methods.Nicholas Nethercote-9/+5
2025-01-30`sliced_string_as_bytes`: fix typo in lint descriptionSamuel Tardieu-1/+1
2025-01-29Add new lint `return_and_then`Aaron Ang-5/+123
2025-01-28Move `format_push_string` and `format_collect` to pedantic (#13894)Catherine Flores-1/+1
2025-01-28`needless_option_take`: add autofix (#14042)llogiq-4/+14
2025-01-28Merge commit '51d49c1ae2785b24ef18a46ef233fc1d91844666' into clippy-subtree-u...Philipp Krones-62/+288
2025-01-28Merge remote-tracking branch 'upstream/master' into rustupPhilipp Krones-63/+290
2025-01-28proper applicability for `obfuscated_if_else` (#14061)Catherine Flores-1/+7
2025-01-28`useless_asref`: no lint if in a closure to change the ref depthSamuel Tardieu-6/+13
2025-01-27correct suggestions in `no_std` (#13999)Manish Goregaokar-5/+7
2025-01-28correct suggestion for `map_with_unused_argument_over_ranges` in a `no_std` e...lapla-cogito-2/+3
2025-01-28correct suggestion for `drain_collect` in a `no_std` environmentlapla-cogito-3/+4
2025-01-27New lint `sliced_string_as_bytes` (#14002)Manish Goregaokar-0/+60
2025-01-26Make `unnecessary_map_or` work with ref and `Deref` to `Option`/`Result` (#14...Alejandra González-1/+1
2025-01-26change the applicability of `obfuscated_if_else` depending on whether the ori...lapla-cogito-1/+7
2025-01-25trigger `obfuscated_if_else` for `.then(..).unwrap_or(..)` (#14021)llogiq-12/+19
2025-01-25slice-as-bytes: pedantic -> perfwowinter13-1/+1
2025-01-25nit: change placeholderswowinter13-2/+2
2025-01-25Small refactoring: irrefutable let patternwowinter13-15/+14
2025-01-25Rename slice_as_bytes -> sliced_string_as_byteswowinter13-7/+7
2025-01-25Fix function signaturewowinter13-1/+1
2025-01-25New lintwowinter13-0/+61
2025-01-25trigger `obfuscated_if_else` for `.then(..).unwrap_or(..)`lapla-cogito-12/+19
2025-01-23The clipper :3cBoxy-8/+5
2025-01-23Move `manual_ok_or` from pedantic to styleSamuel Tardieu-1/+1