rust/compiler/rustc_middle/src
Aaron Hill 450ef8613c
Store a Symbol instead of an Ident in VariantDef/FieldDef
The field is also renamed from `ident` to `name. In most cases,
we don't actually need the `Span`. A new `ident` method is added
to `VariantDef` and `FieldDef`, which constructs the full `Ident`
using `tcx.def_ident_span()`. This method is used in the cases
where we actually need an `Ident`.

This makes incremental compilation properly track changes
to the `Span`, without all of the invalidations caused by storing
a `Span` directly via an `Ident`.
2022-01-11 10:16:22 -05:00
..
dep_graph Remove in_band_lifetimes from rustc_middle 2021-12-15 19:50:43 -05:00
hir rustc_middle: Rename Export to ModChild and add some comments 2022-01-09 09:22:07 +08:00
infer Remove in_band_lifetimes from rustc_middle 2021-12-15 19:50:43 -05:00
middle Compute most of Public/Exported access level in rustc_resolve 2022-01-09 21:33:14 +00:00
mir Store a Symbol instead of an Ident in VariantDef/FieldDef 2022-01-11 10:16:22 -05:00
query Auto merge of #92690 - matthiaskrgr:rollup-rw0oz05, r=matthiaskrgr 2022-01-09 12:43:37 +00:00
thir add a CastKind to Node::Cast 2021-09-09 01:32:03 +01:00
traits Add query to avoid name comparison in leaf_def 2022-01-07 13:31:36 -08:00
ty Store a Symbol instead of an Ident in VariantDef/FieldDef 2022-01-11 10:16:22 -05:00
util Use AddAssign impl 2021-11-09 23:47:36 +01:00
arena.rs Fully serialize AdtDef 2021-12-15 16:32:16 -05:00
lib.rs rustc_middle: Rename Export to ModChild and add some comments 2022-01-09 09:22:07 +08:00
lint.rs Auto merge of #92099 - matthiaskrgr:rollup-4gwv67m, r=matthiaskrgr 2021-12-19 12:36:56 +00:00
macros.rs Rename TypeFolderFallible to FallibleTypeFolder 2021-12-02 16:14:18 +00:00
metadata.rs rustc_middle: Rename Export to ModChild and add some comments 2022-01-09 09:22:07 +08:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
thir.rs Store a Symbol instead of an Ident in VariantDef/FieldDef 2022-01-11 10:16:22 -05:00