aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve.cc
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2021-07-08 13:41:30 +0100
committerPhilip Herron <philip.herron@embecosm.com>2021-07-10 21:28:51 +0100
commit99355534ef44f316ec2b72f4776e08cf01169715 (patch)
treeda8af10feb16cd77c081304e574d9c85b11ee19e /gcc/rust/resolve/rust-ast-resolve.cc
parente3390f5602149c9f918efdd9fdc63448920da916 (diff)
downloadgcc-99355534ef44f316ec2b72f4776e08cf01169715.zip
gcc-99355534ef44f316ec2b72f4776e08cf01169715.tar.gz
gcc-99355534ef44f316ec2b72f4776e08cf01169715.tar.bz2
The type system has a function can_eq this adds a with_errors flag
With the type system we can check for equality explicitly which is useful. When it comes to TypeParameters or Placeholders can_eq allows for: fn bla<T>() -> <T> fn bla() -> i32 The type parameter can be subsituted which means the generic function can equal the subsituted one if it was given the right substituion arguments. This can emit errors such as expected [X] got [Y] or we might want to have silent errors so we can filter impl items such as the impl item overlapping pass
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve.cc')
0 files changed, 0 insertions, 0 deletions