mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-31 20:09:01 +00:00
fix: Walk const block expressions for unsafety checking
This commit is contained in:
parent
4fdc2507c6
commit
8df812f14d
3 changed files with 21 additions and 0 deletions
|
|
@ -348,6 +348,7 @@ impl<'a> UnsafeVisitor<'a> {
|
|||
Expr::Closure { args, .. } => {
|
||||
self.walk_pats_top(args.iter().copied(), current);
|
||||
}
|
||||
Expr::Const(e) => self.walk_expr(*e),
|
||||
_ => {}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue