]> git.lizzy.rs Git - rust.git/commit
auto merge of #19638 : barosl/rust/typeck-tupled-arguments-ice, r=jakub
authorbors <bors@rust-lang.org>
Wed, 10 Dec 2014 09:56:14 +0000 (09:56 +0000)
committerbors <bors@rust-lang.org>
Wed, 10 Dec 2014 09:56:14 +0000 (09:56 +0000)
commitfddec2d88a1b44c6eb8922127b8683e1c6778052
tree98f2674a8e9ac57a122d766404f3da0662670ca2
parent444a759b84573a5a4cbf3f852b22148e68306ce3
parent21d12c029700adc158c5fb466384ccd8562a6915
auto merge of #19638 : barosl/rust/typeck-tupled-arguments-ice, r=jakub

When a type error occurs, `check_method_argument_types()` tries to provide arguments filled with `ty::mk_err()`. However, if a function takes the parameters as a tuple, the arguments should be converted to a tuple before passing it to `check_argument_types()`.

Fixes #19521.