]> git.lizzy.rs Git - rust.git/commit
Break when there is a mismatch in the type count
authorMidas Lambrichts <midaslamb@gmail.com>
Fri, 26 Mar 2021 22:16:22 +0000 (23:16 +0100)
committerMidas Lambrichts <midaslamb@gmail.com>
Fri, 26 Mar 2021 22:16:22 +0000 (23:16 +0100)
commit5676bd51aeaa6b05735dc888a2e41770a4d7b162
tree76dbc409edec4d7a69bd745470f3456b9f5687b7
parentb8719c51e0e44483cff9b6975a830f6e51812a48
Break when there is a mismatch in the type count

When other errors are generated, there can be a mismatch between the
amount of input types in MIR, and the amount in the function itself.
Break from the comparative loop if this is the case to prevent
out-of-bounds.
compiler/rustc_mir/src/borrow_check/type_check/input_output.rs