diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-12-25 18:13:43 +0000 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-21 12:55:44 +0100 |
commit | 161b9e9828b84b75f64aa0ffdadcefe920c1ed0d (patch) | |
tree | 2dd6f061cdd0e2c4f82adc2fc41e732b9c08d13a /gcc/rust/resolve/rust-name-resolution-context.h | |
parent | cd8547f85e53b42eff5a7c7572b466c023c75daf (diff) | |
download | gcc-161b9e9828b84b75f64aa0ffdadcefe920c1ed0d.zip gcc-161b9e9828b84b75f64aa0ffdadcefe920c1ed0d.tar.gz gcc-161b9e9828b84b75f64aa0ffdadcefe920c1ed0d.tar.bz2 |
gccrs: tychk: Add more support for additional trait bounds in functions
This commit correctly lowers and typechecks parenthesized types, which are used for trait objects with additional bounds.
gcc/rust/ChangeLog:
* resolve/rust-ast-resolve-type.cc (ResolveType::visit): New visitor to handle
ParenthesizedType.
* resolve/rust-ast-resolve-type.h: Likewise.
* typecheck/rust-hir-type-check-type.cc (TypeCheckType::visit): Likewise.
* typecheck/rust-hir-type-check-type.h: Likewise.
gcc/testsuite/ChangeLog:
* rust/compile/auto_traits2.rs: New test.
* rust/compile/auto_traits3.rs: New test.
* rust/compile/nr2/exclude: Add auto_traits2 test.
Diffstat (limited to 'gcc/rust/resolve/rust-name-resolution-context.h')
0 files changed, 0 insertions, 0 deletions