aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-04-30 10:58:23 +0000
committerGitHub <noreply@github.com>2021-04-30 10:58:23 +0000
commit0276ec39a9c3b839c47ce28838a8d5af25fbf598 (patch)
tree92dfd62b9f3ebf2d73a0bfcaf2b59c513191aead /gcc/rust/backend
parentf189f5bbab73b5d04faee4f4d2198f023c9e1522 (diff)
parentb7d95ea80be40c5ee468a5549d84e058a21fc62c (diff)
downloadgcc-0276ec39a9c3b839c47ce28838a8d5af25fbf598.zip
gcc-0276ec39a9c3b839c47ce28838a8d5af25fbf598.tar.gz
gcc-0276ec39a9c3b839c47ce28838a8d5af25fbf598.tar.bz2
Merge #399
399: Improve error diagnostics in generic argument handling r=philberty a=philberty When we get GenericBindings such as ::<A=...> this is not allowed in this context. We can also improve the unexpected number of argument errors to print the number of expected vs received arguments An example error message looks like: ``` test.rs:4:12: error: generic item takes at least 1 type arguments but 0 were supplied 1 | struct Foo<A>(A); | ~ ...... 4 | let a: Foo = Foo::<i32>(123); | ^ ``` Co-authored-by: Philip Herron <philip.herron@embecosm.com> Co-authored-by: Marc Poulhiès <dkm@kataplop.net>
Diffstat (limited to 'gcc/rust/backend')
0 files changed, 0 insertions, 0 deletions