about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-06-05 11:21:45 +0000
committerbors <bors@rust-lang.org>2023-06-05 11:21:45 +0000
commitb033883e2be39f0bc4ff0f5d9902f87d6f92fc85 (patch)
treec442741bab3b69b9178d46dd2f976394ae8861d6 /tests/rustdoc-js-std/parser-errors.js
parent4895a40108018010fe1221b2168492a3bd52c57c (diff)
parenta239c8b52be0c1eed1a07be6bef558d3e62f9e44 (diff)
downloadrust-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