about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-03-17 16:49:46 +0000
committerbors <bors@rust-lang.org>2021-03-17 16:49:46 +0000
commitb4adc21c4fa245994b4936df5b4f7d94ca633c5d (patch)
tree5c799d9f113f49db81ef5357a85280f8c7826c4a /compiler/rustc_codegen_llvm/src
parent04ae50179a802d1d18bb780baa85f55864f56616 (diff)
parentd1522b39dded68a3c442bed0b0a231020c6e2291 (diff)
downloadrust-b4adc21c4fa245994b4936df5b4f7d94ca633c5d.tar.gz
rust-b4adc21c4fa245994b4936df5b4f7d94ca633c5d.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 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions