about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorChayim Refael Friedman <chayimfr@gmail.com>2024-09-06 16:25:22 +0300
committerChayim Refael Friedman <chayimfr@gmail.com>2024-10-25 06:15:04 +0300
commita05b16bdb5452a284914fa9ce23f849317af2b8d (patch)
tree8a42442dfa6b594d7ecb2ee7c7354600120cb517 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentaaae1d4c55f6e90d4bccb006190b22a3bcbda9e3 (diff)
downloadrust-a05b16bdb5452a284914fa9ce23f849317af2b8d.tar.gz
rust-a05b16bdb5452a284914fa9ce23f849317af2b8d.zip
Build source map for `hir_def::TypeRef`s
So that given a `TypeRef` we will be able to trace it back to source code.

This is necessary to be able to provide diagnostics for lowering to chalk tys, since the input to that is `TypeRef`.

This means that `TypeRef`s now have an identity, which means storing them in arena and not interning them, which is an unfortunate (but necessary) loss but also a pretty massive change. Luckily, because of the separation layer we have for IDE and HIR, this change never crosses the IDE boundary.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions