diff options
| author | bors <bors@rust-lang.org> | 2024-03-11 22:21:27 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-03-11 22:21:27 +0000 |
| commit | e22ca036279dd3fc2aaf05dfca78e5088d98b03e (patch) | |
| tree | 653a607da54bb4cf1b9019944592b43411cbc282 /compiler/rustc_codegen_gcc/example/std_example.rs | |
| parent | f685a4b3f1533091fd44580ad3d4aadba033852e (diff) | |
| parent | ed6e6291dce9b4c078d59ac8fabc6e532be8517f (diff) | |
| download | rust-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
