the "add missing members" assists: supported bracketed default const values

This commit is contained in:
ponyii 2023-07-12 18:31:40 +04:00
parent 4e2be8e959
commit 61cabe029f
3 changed files with 43 additions and 6 deletions

View file

@ -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());
}
}