aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-lang.cc
diff options
context:
space:
mode:
authorMuhammad Mahad <mahadtxt@gmail.com>2023-07-06 17:08:56 +0500
committerPhilip Herron <philip.herron@embecosm.com>2023-07-09 13:03:04 +0000
commitf7a29f5653ae0787fd57ced935be0be4beb93036 (patch)
treec4642b81f572a29e387044bf5ec5631f16d7e0a0 /gcc/rust/rust-lang.cc
parent3ebcb20e7122a8296527c177bbac280cc861a851 (diff)
downloadgcc-f7a29f5653ae0787fd57ced935be0be4beb93036.zip
gcc-f7a29f5653ae0787fd57ced935be0be4beb93036.tar.gz
gcc-f7a29f5653ae0787fd57ced935be0be4beb93036.tar.bz2
gccrs: [E0061] Refactored argument mismatch error function
Added Invalid number of arguments (argument mismatch) was passed when calling a function - unexpected number of arguments `x` expected `y` And Refactored error into one function. gcc/rust/ChangeLog: * typecheck/rust-tyty-call.cc (emit_unexpected_argument_error): Refactored invalid number of argument into one function. (TypeCheckCallExpr::visit): called refactored function. (TypeCheckMethodCallExpr::check): likewise. gcc/testsuite/ChangeLog: * rust/compile/func2.rs: updated comment to pass new test cases. * rust/compile/tuple_struct2.rs: likewise. * rust/compile/wrong_no_of_parameters.rs: New test. Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
Diffstat (limited to 'gcc/rust/rust-lang.cc')
0 files changed, 0 insertions, 0 deletions