about summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-05-17 10:14:19 +0000
committerbors <bors@rust-lang.org>2019-05-17 10:14:19 +0000
commit39401465da4ce27aeeb2c2a26133ac35c63aa515 (patch)
treee81c6ded74306f2cbcbfe02476638f06bc096182 /src/test/codegen
parent68fd80fa1efb74863bda050b21edcd44125ee85b (diff)
parentbff8a86698195ba2d2798405d3535efdce2fccef (diff)
downloadrust-39401465da4ce27aeeb2c2a26133ac35c63aa515.tar.gz
rust-39401465da4ce27aeeb2c2a26133ac35c63aa515.zip
Auto merge of #60892 - davidtwco:issue-60622, r=oli-obk
Checking generic args after late bound region err.

Fixes #60622.

This PR fixes an ICE that occurs when a late bound region error is
emitted and that resulted in the rest of the generic arguments of a
function not being checked.

For example, you could specify a generic type parameter `T` in a function
call `foo<'_, T>()` to a function that doesn't have a generic type
parameter.

Since an error wasn't emitted from the function, compilation
continued to parts of typeck that didn't expect a generic type argument
in a call for a function that didn't have any generic type arguments.
Diffstat (limited to 'src/test/codegen')
0 files changed, 0 insertions, 0 deletions