about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-06-08 13:32:18 -0700
committerGitHub <noreply@github.com>2022-06-08 13:32:18 -0700
commit1922f0b9802a2edee8bacc3639f651b82d38edd1 (patch)
treec630950a8cfa9f85c0648f074b1395dd34462081 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent263d8682d6e01bb02727b15b1c72ffabc0e7396b (diff)
parent4b26d410880fc06a8035ae3efa7b01a243ed7e75 (diff)
downloadrust-1922f0b9802a2edee8bacc3639f651b82d38edd1.tar.gz
rust-1922f0b9802a2edee8bacc3639f651b82d38edd1.zip
Rollup merge of #97557 - compiler-errors:arg-mismatch-mini, r=jackh726
Fix indices and remove some unwraps in arg mismatch algorithm

This is a more conservative fix than #97542, addressing some indices which were used incorectly and unwraps which are bound to panic (e.g. when the provided and expected arg counts differ). Beta nominating this as it's quite easy to cause ICEs -- I wrote a fuzzer and found hundreds of examples of ICEs.

cc `@jackh726` as author of #92364, and `@estebank` as reviewer of that PR.
fixes #97484
r? `@jackh726` this should be _much_ easier to review than the other PR :sweat_smile:
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions