about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/std_example.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-03-11 22:21:27 +0000
committerbors <bors@rust-lang.org>2024-03-11 22:21:27 +0000
commite22ca036279dd3fc2aaf05dfca78e5088d98b03e (patch)
tree653a607da54bb4cf1b9019944592b43411cbc282 /compiler/rustc_codegen_gcc/example/std_example.rs
parentf685a4b3f1533091fd44580ad3d4aadba033852e (diff)
parented6e6291dce9b4c078d59ac8fabc6e532be8517f (diff)
downloadrust-e22ca036279dd3fc2aaf05dfca78e5088d98b03e.tar.gz
rust-e22ca036279dd3fc2aaf05dfca78e5088d98b03e.zip
Auto merge of #12452 - CBSpeir:dedup-manual-retain, r=blyxyas
[`manual_retain`]: Fix duplicate diagnostics

Relates to: #12379

The first lint guard executed in `LateLintPass::check_expr` was testing if the parent was of type `ExprKind::Assign`.  This meant the lint emitted on both sides of the assignment operator when `check_expr` is called on either `Expr`.  The guard in the fix only lints once when the `Expr` is of kind `Assign`.

changelog:  Fix duplicate lint diagnostic emission from [`manual_retain`]
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
0 files changed, 0 insertions, 0 deletions