mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
19cab6b878
hygiene: Ensure uniqueness of `SyntaxContextData`s `SyntaxContextData`s are basically interned with `SyntaxContext`s working as indices, so they are supposed to be unique. However, currently duplicate `SyntaxContextData`s can be created during decoding from metadata or incremental cache. This PR fixes that. cc https://github.com/rust-lang/rust/pull/129827#discussion_r1759074553