Add nested bool to DefKind::Static.

Will be used in the next commit
This commit is contained in:
Oli Scherer 2024-02-23 23:29:09 +00:00
parent b205192f65
commit 013bf92dcc

View File

@ -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, ..}, _),
..
}
))