rust/compiler/rustc_ast/src
bors b4adc21c4f 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.
2021-03-17 16:49:46 +00:00
..
ast
attr Inline Attribute::has_name 2021-03-11 16:04:14 +01:00
expand
util Remove unnecessary manual shrink_to_fit calls 2021-01-16 14:02:36 +01:00
ast.rs Auto merge of #83188 - petrochenkov:field, r=lcnr 2021-03-17 16:49:46 +00:00
ast_like.rs ast/hir: Rename field-related structures 2021-03-16 11:41:24 +03:00
entry.rs
lib.rs Auto merge of #81635 - michaelwoerister:structured_def_path_hash, r=pnkfelix 2021-03-07 23:45:57 +00:00
mut_visit.rs ast: Reduce size of ExprKind by boxing fields of ExprKind::Struct 2021-03-16 11:41:24 +03:00
node_id.rs Clarify docs for DUMMY_NODE_ID 2021-02-07 19:42:12 -08:00
ptr.rs
token.rs Introduce proc_macro_back_compat lint, and emit for time-macros-impl 2021-03-14 21:31:46 -04:00
tokenstream.rs Change x64 size checks to not apply to x32. 2021-03-06 16:02:48 +00:00
visit.rs ast: Reduce size of ExprKind by boxing fields of ExprKind::Struct 2021-03-16 11:41:24 +03:00