about summary refs log tree commit diff
path: root/src/test/ui/function-pointer
diff options
context:
space:
mode:
authorDorian Scheidt <dorian.scheidt@gmail.com>2022-07-08 18:01:44 -0500
committerDorian Scheidt <dorian.scheidt@gmail.com>2022-07-08 18:35:04 -0500
commit21062f9201ca05929a11c87a51850d45c8d8ef00 (patch)
tree9d9773aa9feb4cd70ef52657d1b0823fa2ffd9cf /src/test/ui/function-pointer
parent2836dd15f753a490ea5b89e02c6cfcecd2f32984 (diff)
downloadrust-21062f9201ca05929a11c87a51850d45c8d8ef00.tar.gz
rust-21062f9201ca05929a11c87a51850d45c8d8ef00.zip
fix: Improve suggested names for extracted variables
When extracting a field expression, if RA was unable to resolve the type of the
field, we would previously fall back to using "var_name" as the variable name.

Now, when the `Expr` being extracted matches a `FieldExpr`, we can use the
`NameRef`'s ident token as a fallback option.

fixes #10035
Diffstat (limited to 'src/test/ui/function-pointer')
0 files changed, 0 insertions, 0 deletions