-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gccrs: fix name resolution for generics where type param is declared …
…later Rust allows you to use generics within type bounds when they are declared later on. This changes the name resolution to walk the genric params in two passes to ensure the type parameters are setup before drilling down into the type parameters This issue has exposed another type checking issue which needs fixed in a subseqent patch. Addresses #3022 gcc/rust/ChangeLog: * resolve/rust-ast-resolve-item.cc (ResolveTraitItems::visit): use new api (ResolveItem::visit): likewise (ResolveExternItem::visit): likewise * resolve/rust-ast-resolve-stmt.h: likewise * resolve/rust-ast-resolve-type.h (class ResolveGenericParam): remove (class ResolveGenericParams): added new api Signed-off-by: Philip Herron <[email protected]>
- Loading branch information
Showing
3 changed files
with
86 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters