diff options
| author | Timo <30553356+y21@users.noreply.github.com> | 2025-08-02 11:41:00 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-02 11:41:00 +0000 |
| commit | e8185ec091d7fe71b03cacb7846ae1c8323e013a (patch) | |
| tree | 79856308959be898a2070439f6db56452205d9e1 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | ffcd12946e2d986e50174649e81463707ce7b8c3 (diff) | |
| parent | e910c0e7e6338bdc4c63b584bfff3f2abf1c3896 (diff) | |
| download | rust-e8185ec091d7fe71b03cacb7846ae1c8323e013a.tar.gz rust-e8185ec091d7fe71b03cacb7846ae1c8323e013a.zip | |
Extend `implicit_clone` to handle `to_string` calls (#14177)
Put another way, merge `string_to_string` into `implicit_clone`, as suggested here: https://github.com/rust-lang/rust-clippy/issues/14173#issuecomment-2645846915 Note: [I wrote](https://github.com/rust-lang/rust-clippy/commit/b8913894a13431bea99400dc9f53a1fd9f41a6c6) this comment: https://github.com/rust-lang/rust-clippy/blob/6cdb7f68c39a2458c6b8f6dc63da4123a6a5af89/clippy_lints/src/methods/implicit_clone.rs#L43-L45 Here is the context for why I wrote it: https://github.com/rust-lang/rust-clippy/pull/7978#discussion_r769128853 Regardless, it's probably time for the comment to go away. Extending `implicit_clone` to handle `to_string` calls yields many hits within Clippy's codebase. changelog: extend `implicit_clone` to handle `to_string` calls
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
