mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 20:01:22 -05:00
gccrs: Add name resolution to generic argument associated item bindings
When specifying generic arguments to Traits we can also specify the associated types using `<BindingName=i32>` syntax we need to add name resolution to the type argument here and rely on the type resolution pass to ensure the associated type exists and to setup the associated types accordingly. Addresses #1720 gcc/rust/ChangeLog: * resolve/rust-ast-resolve-type.cc (ResolveGenericArgs::go): Add name resolution to Trait items. Signed-off-by: Philip Herron <herron.philip@googlemail.com>
This commit is contained in:
committed by
Arthur Cohen
parent
e1394230b3
commit
3f1dbb2cf8
@@ -589,6 +589,11 @@ ResolveGenericArgs::go (AST::GenericArgs &generic_args,
|
||||
|
||||
resolver.resolve_disambiguated_generic (arg);
|
||||
}
|
||||
|
||||
for (auto &binding : generic_args.get_binding_args ())
|
||||
{
|
||||
ResolveType::go (binding.get_type ().get ());
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace Resolver
|
||||
|
||||
Reference in New Issue
Block a user