mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
the "add missing members" assists: supported bracketed default const values
This commit is contained in:
parent
4e2be8e959
commit
61cabe029f
3 changed files with 43 additions and 6 deletions
|
@ -156,6 +156,7 @@ impl<'a> PathTransform<'a> {
|
|||
// is a standalone statement or a part of another expresson)
|
||||
// and sometimes require slight modifications; see
|
||||
// https://doc.rust-lang.org/reference/statements.html#expression-statements
|
||||
// (default values in curly brackets can cause the same problem)
|
||||
const_substs.insert(k, expr.syntax().clone());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue