mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
7655d9370d
Expose Span for all DefIds in rustc_public Part of https://github.com/rust-lang/project-stable-mir/issues/118 To be maximally useful, `VariantDef` and `FieldDef` should be changed to be a wrapper around `DefId` instead of holding their parent and index. I can do this change in this PR or a follow-up if it is desired. For now, I added the missing `impl Stable for DefId` in internals so you can convert from rustc internals.