diff options
| author | bors <bors@rust-lang.org> | 2021-03-17 16:49:46 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-03-17 16:49:46 +0000 |
| commit | 56138ad789c30efb053a909af94893fc7452fd39 (patch) | |
| tree | d1fd2d0e085d3035c3dbc74189c2909228a20ee7 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs | |
| parent | 5476382dda9030928f9f4dc711ade6613d7ee80a (diff) | |
| parent | e72d28352c58d887db21f9bd663dd3c65f3dcb32 (diff) | |
| download | rust-56138ad789c30efb053a909af94893fc7452fd39.tar.gz rust-56138ad789c30efb053a909af94893fc7452fd39.zip | |
Auto merge of #83188 - petrochenkov:field, r=lcnr
ast/hir: Rename field-related structures
I always forget what `ast::Field` and `ast::StructField` mean despite working with AST for long time, so this PR changes the naming to less confusing and more consistent.
- `StructField` -> `FieldDef` ("field definition")
- `Field` -> `ExprField` ("expression field", not "field expression")
- `FieldPat` -> `PatField` ("pattern field", not "field pattern")
Various visiting and other methods working with the fields are renamed correspondingly too.
The second commit reduces the size of `ExprKind` by boxing fields of `ExprKind::Struct` in preparation for https://github.com/rust-lang/rust/pull/80080.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions
