about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-06-05 06:13:32 +0900
committerGitHub <noreply@github.com>2021-06-05 06:13:32 +0900
commit3a8bb38164d9681bb20d60e9fb225efe10d3c6fa (patch)
tree69ffb9bdc8817faf81d5fe5f8c81c81c441e0c9f /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent74c744e54a9805b8fa98eb43321f7f8efd998536 (diff)
parent4029a03b345ae9fcc8e981ac181f00332b7711ed (diff)
downloadrust-3a8bb38164d9681bb20d60e9fb225efe10d3c6fa.tar.gz
rust-3a8bb38164d9681bb20d60e9fb225efe10d3c6fa.zip
Rollup merge of #84880 - jyn514:cleanup-itemkind, r=GuillaumeGomez
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?

Found while reviewing https://github.com/rust-lang/rust/pull/84176.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions