]> git.lizzy.rs Git - rust.git/commit
Closure argument mismatch tweaks
authorEsteban Küber <esteban@kuber.com.ar>
Fri, 19 Jan 2018 09:28:20 +0000 (01:28 -0800)
committerEsteban Küber <esteban@kuber.com.ar>
Sat, 20 Jan 2018 09:36:01 +0000 (01:36 -0800)
commit7ed00caacc6801c8d99bcb5754a22209e9bfe661
treef4dc4afe42f8c8fdfaa0e5da24ef4866c5c30770
parentbb345a0be3ba3fa1970fe02789791c5c72788d8f
Closure argument mismatch tweaks

 - use consistent phrasing for expected and found arguments
 - suggest changing arugments to tuple if possible
 - suggest changing single tuple argument to arguments if possible
src/librustc/traits/error_reporting.rs
src/test/ui/mismatched_types/closure-arg-count.rs
src/test/ui/mismatched_types/closure-arg-count.stderr