diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2021-05-03 14:57:51 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2021-05-03 17:01:16 -0400 |
| commit | 4029a03b345ae9fcc8e981ac181f00332b7711ed (patch) | |
| tree | 639a27c7d74a4b96b1d083da8c1bc47e50db07bc /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 716394d6581b60c75cfdd88b8e5b876f2db88b62 (diff) | |
| download | rust-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
