about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2021-05-03 14:57:51 -0400
committerJoshua Nelson <jyn514@gmail.com>2021-05-03 17:01:16 -0400
commit4029a03b345ae9fcc8e981ac181f00332b7711ed (patch)
tree639a27c7d74a4b96b1d083da8c1bc47e50db07bc /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent716394d6581b60c75cfdd88b8e5b876f2db88b62 (diff)
downloadrust-4029a03b345ae9fcc8e981ac181f00332b7711ed.tar.gz
rust-4029a03b345ae9fcc8e981ac181f00332b7711ed.zip
Make match in `register_res` easier to read
- Don't duplicate DefKind -> ItemType handling; that's a good way to get bugs
- Use exhaustive match
- Add comments

This found that register_res is very wrong in at least one way: if it
registers a Res for `Variant`, it should also register one for `Field`.
But I don't know whether the one for Variant should be removed or Field
added. Maybe someone has ideas?
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions