rust/compiler/rustc_passes
Dylan DPC 9d378b33de
Rollup merge of #82297 - tmiasko:write-only, r=oli-obk
Consider auto derefs before warning about write only fields

Changes from #81473 extended the dead code lint with an ability to detect
fields that are written to but never read from. The implementation skips
over fields on the left hand side of an assignment, without marking them
as live.

A field access might involve an automatic dereference and de-facto read
the field. Conservatively mark expressions with deref adjustments as
live to avoid generating false positive warnings.

Closes #81626.
2021-02-23 16:10:25 +01:00
..
src Rollup merge of #82297 - tmiasko:write-only, r=oli-obk 2021-02-23 16:10:25 +01:00
Cargo.toml Add rustc_lexer as dependency to rustc_passes 2020-12-02 10:42:50 +01:00