about summary refs log tree commit diff
path: root/tests/ui/patchable-function-entry/patchable-function-entry-flags.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-01-05 06:39:46 +0000
committerbors <bors@rust-lang.org>2024-01-05 06:39:46 +0000
commitee8bfb7f7af0c4ba4a6d200627bb48d0e09dcc17 (patch)
treed22d2baa9dd64fe3c13478ae1a3b5451e5bbe740 /tests/ui/patchable-function-entry/patchable-function-entry-flags.rs
parent8507e4c80e7e7af605798b8c784d4edb3fb0f436 (diff)
parent5960107415caf34a84fc8bb2f2fd303b7e358041 (diff)
downloadrust-ee8bfb7f7af0c4ba4a6d200627bb48d0e09dcc17.tar.gz
rust-ee8bfb7f7af0c4ba4a6d200627bb48d0e09dcc17.zip
Auto merge of #12051 - y21:option_as_ref_cloned, r=dswij
new lint: `option_as_ref_cloned`

Closes #12009

Adds a new lint that looks for `.as_ref().cloned()` on `Option`s. That's the same as just `.clone()`-ing the option directly.

changelog: new lint: [`option_as_ref_cloned`]
Diffstat (limited to 'tests/ui/patchable-function-entry/patchable-function-entry-flags.rs')
0 files changed, 0 insertions, 0 deletions