Vadim Petrochenkov
b25d3ba781
ast/hir: Rename field-related structures
...
StructField -> FieldDef ("field definition")
Field -> ExprField ("expression field", not "field expression")
FieldPat -> PatField ("pattern field", not "field pattern")
Also rename visiting and other methods working on them.
2021-03-16 11:41:24 +03:00
Camille GILLOT
445b4e379c
Make def_key and HIR parenting consistent.
2021-03-12 22:48:32 +01:00
Camille GILLOT
38d9d09a58
Use BTreeMap to store attributes.
2021-03-09 19:28:01 +01:00
Camille GILLOT
1fb257b3b4
Collect attributes during HIR lowering.
2021-03-09 18:51:37 +01:00
Camille GILLOT
91d8e59cca
Remove HirItemLike.
2021-02-15 19:36:13 +01:00
Camille GILLOT
c4e7427081
Only store a LocalDefId in hir::MacroDef.
2021-02-15 19:35:55 +01:00
Camille GILLOT
996dc8d5c5
Only store a LocalDefId in hir::ForeignItem.
2021-02-15 19:32:29 +01:00
Camille GILLOT
786a80e9ea
Only store a LocalDefId in hir::ImplItem.
2021-02-15 19:32:29 +01:00
Camille GILLOT
a871a0f111
Only store a LocalDefId in hir::TraitItem.
2021-02-15 19:32:28 +01:00
Camille GILLOT
cebbba081e
Only store a LocalDefId in hir::Item.
...
Items are guaranteed to be HIR owner.
2021-02-15 19:32:10 +01:00
Camille GILLOT
c676e358a5
Use ItemId as a strongly typed index.
2021-02-15 19:24:58 +01:00
Camille GILLOT
59f1ccd35c
Compute parent module when collecting hir::MacroDef.
2021-01-05 21:10:34 +01:00
Camille GILLOT
5bd197921a
Do not visit ForeignItemRef for HIR indexing and validation.
...
Similarly to what is done for ImplItemRef and TraitItemRef.
Fixes #79487
2020-11-28 18:08:17 +01:00
Camille GILLOT
419a9186a4
Store ForeignItem in a side table.
2020-11-26 21:29:27 +01:00
Bastian Kauschke
f865e3d22f
bodge
2020-10-07 10:19:04 +02:00
marmeladema
35bad3edbf
Address review comment
2020-09-25 22:48:44 +01:00
mark
9e5f7d5631
mv compiler to compiler/
2020-08-30 18:45:07 +03:00