diff options
| author | bors <bors@rust-lang.org> | 2023-06-05 11:21:45 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-06-05 11:21:45 +0000 |
| commit | b033883e2be39f0bc4ff0f5d9902f87d6f92fc85 (patch) | |
| tree | c442741bab3b69b9178d46dd2f976394ae8861d6 /tests/rustdoc-js-std/parser-errors.js | |
| parent | 4895a40108018010fe1221b2168492a3bd52c57c (diff) | |
| parent | a239c8b52be0c1eed1a07be6bef558d3e62f9e44 (diff) | |
| download | rust-b033883e2be39f0bc4ff0f5d9902f87d6f92fc85.tar.gz rust-b033883e2be39f0bc4ff0f5d9902f87d6f92fc85.zip | |
Auto merge of #10864 - y21:issue10437, r=blyxyas,xFrednet
[`unnecessary_lazy_eval`]: don't lint on types with deref impl Fixes #10437. This PR changes clippy's util module `eager_or_lazy` to also consider deref expressions whose type has a non-builtin deref impl and not suggest replacing it as that might have observable side effects. A prominent example might be the `lazy_static` macro, which creates a newtype with a `Deref` impl that you need to go through to get access to the inner value. Going from lazy to eager can make a difference there. changelog: [`unnecessary_lazy_eval`]: don't lint on types with non-builtin deref impl
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions
