about summary refs log tree commit diff
path: root/src/test/ui/function-pointer
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-07-09 13:08:57 +0000
committerbors <bors@rust-lang.org>2022-07-09 13:08:57 +0000
commit666343b759e4949415ce7ad786b3cede1263b0ae (patch)
tree9d9773aa9feb4cd70ef52657d1b0823fa2ffd9cf /src/test/ui/function-pointer
parent2836dd15f753a490ea5b89e02c6cfcecd2f32984 (diff)
parent21062f9201ca05929a11c87a51850d45c8d8ef00 (diff)
downloadrust-666343b759e4949415ce7ad786b3cede1263b0ae.tar.gz
rust-666343b759e4949415ce7ad786b3cede1263b0ae.zip
Auto merge of #12727 - DorianListens:dscheidt/extract-var-field-name, r=jonas-schievink
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