]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: resolve: Name resolve trait bounds properly
authorArthur Cohen <arthur.cohen@embecosm.com>
Wed, 25 Dec 2024 11:03:44 +0000 (11:03 +0000)
committerArthur Cohen <arthur.cohen@embecosm.com>
Fri, 21 Mar 2025 11:55:43 +0000 (12:55 +0100)
commitc0640954e1a340764368a10f3b7774696e32a8ae
tree381ce7ebf2db113cbadf9c5854abb3ab8c71c91a
parentf30ba73582e4c53d4936e9c091d60b187a276373
gccrs: resolve: Name resolve trait bounds properly

gcc/rust/ChangeLog:

* resolve/rust-ast-resolve-type.cc (ResolveTypeToCanonicalPath::visit): Resolve additional
trait bounds.
* resolve/rust-late-name-resolver-2.0.cc (Late::visit): Error out properly on unresolved
type-path instead of crashing.

gcc/testsuite/ChangeLog:

* rust/compile/nr2/exclude: Exclude additional-trait-bounds2 for different error message.
* rust/compile/additional-trait-bounds1.rs: New test.
* rust/compile/additional-trait-bounds2.rs: New test.
* rust/compile/additional-trait-bounds2nr2.rs: New test.
gcc/rust/resolve/rust-ast-resolve-type.cc
gcc/rust/resolve/rust-late-name-resolver-2.0.cc
gcc/testsuite/rust/compile/additional-trait-bounds1.rs [new file with mode: 0644]
gcc/testsuite/rust/compile/additional-trait-bounds2.rs [new file with mode: 0644]
gcc/testsuite/rust/compile/additional-trait-bounds2nr2.rs [new file with mode: 0644]
gcc/testsuite/rust/compile/nr2/exclude