diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-02-23 23:29:09 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-03-12 05:53:46 +0000 |
| commit | 013bf92dcc3a602bd9b82675fe86bf396e115224 (patch) | |
| tree | 41a9d85e551e02db95f42927214cc471cf855430 | |
| parent | b205192f65816071a0a316dd64e3204636d53347 (diff) | |
| download | rust-013bf92dcc3a602bd9b82675fe86bf396e115224.tar.gz rust-013bf92dcc3a602bd9b82675fe86bf396e115224.zip | |
Add `nested` bool to `DefKind::Static`.
Will be used in the next commit
| -rw-r--r-- | clippy_lints/src/multiple_unsafe_ops_per_block.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/multiple_unsafe_ops_per_block.rs b/clippy_lints/src/multiple_unsafe_ops_per_block.rs index d8caa632b93..4155e608026 100644 --- a/clippy_lints/src/multiple_unsafe_ops_per_block.rs +++ b/clippy_lints/src/multiple_unsafe_ops_per_block.rs @@ -109,7 +109,7 @@ fn collect_unsafe_exprs<'tcx>( ExprKind::Path(QPath::Resolved( _, hir::Path { - res: Res::Def(DefKind::Static{mt:Mutability::Mut}, _), + res: Res::Def(DefKind::Static{mt:Mutability::Mut, ..}, _), .. }, )) => { @@ -149,7 +149,7 @@ fn collect_unsafe_exprs<'tcx>( ExprKind::Path(QPath::Resolved( _, hir::Path { - res: Res::Def(DefKind::Static{mt:Mutability::Mut}, _), + res: Res::Def(DefKind::Static{mt:Mutability::Mut, ..}, _), .. } )) |
