about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-01-21 13:25:26 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2022-01-21 14:38:43 +1100
commitd46ed5d3333770ac490d587878d708c3be17f137 (patch)
treeca5a49864ef94b036dd8c482082ab447cb2d2251 /compiler/rustc_codegen_gcc
parentc55819ae606046e2a7b6b92c3f0821bd171f34b0 (diff)
downloadrust-d46ed5d3333770ac490d587878d708c3be17f137.tar.gz
rust-d46ed5d3333770ac490d587878d708c3be17f137.zip
Clarify some code relating to interning and types.
I have found this code very confusing at times. This commit clarifies
things.

In particular, the commit explains the requirements that the `Borrow`
impls put on the `Eq` and `Hash` impls, which are non-obvious. And it
puts the `Borrow` impls first, since they force `Eq` and `Hash` to have
particular forms.

The commit also notes `TyS`'s uniqueness requirements.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions