diff options
| author | bors <bors@rust-lang.org> | 2022-07-09 13:08:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-07-09 13:08:57 +0000 |
| commit | 666343b759e4949415ce7ad786b3cede1263b0ae (patch) | |
| tree | 9d9773aa9feb4cd70ef52657d1b0823fa2ffd9cf /src/test/codegen/src-hash-algorithm | |
| parent | 2836dd15f753a490ea5b89e02c6cfcecd2f32984 (diff) | |
| parent | 21062f9201ca05929a11c87a51850d45c8d8ef00 (diff) | |
| download | rust-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/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
