about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorTimo <30553356+y21@users.noreply.github.com>2025-08-02 11:41:00 +0000
committerGitHub <noreply@github.com>2025-08-02 11:41:00 +0000
commite8185ec091d7fe71b03cacb7846ae1c8323e013a (patch)
tree79856308959be898a2070439f6db56452205d9e1 /tests/rustdoc-js-std/parser-errors.js
parentffcd12946e2d986e50174649e81463707ce7b8c3 (diff)
parente910c0e7e6338bdc4c63b584bfff3f2abf1c3896 (diff)
downloadrust-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 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions