rust/compiler/rustc_span
bors e7119a0300 Auto merge of #98840 - cjgillot:span-inline-ctxt, r=wesleywiser
Inline SyntaxContext in both encoded span representation.

The current interned representation for spans does not use the `ctxt_or_zero: u16` field.  This PR proposes to use this field to store the `SyntaxContext` of the interned span instead.  When `ctxt_or_zero` and the interned span's `ctxt` don't match, the inlined one takes precedence.

This allows to implement `Span::ctxt` and `Span::with_ctxt` with much less probability to access the interner.  Those functions are used a lot for hygiene, so this may be worth it.
2022-09-22 17:59:27 +00:00
..
src Auto merge of #98840 - cjgillot:span-inline-ctxt, r=wesleywiser 2022-09-22 17:59:27 +00:00
Cargo.toml Update sha1, sha2, and md5 dependencies 2022-02-13 15:29:01 -06:00