Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ast: Add ResolveGenericArgs resolver #1354

Merged
merged 1 commit into from
Jul 7, 2022

Conversation

CohenArthur
Copy link
Member

This resolver replaces the helper function
ResolveType::type_resolve_generic_args and will later benefit from
more functionality such as generic disambiguation

@CohenArthur
Copy link
Member Author

bors r+

@bors
Copy link
Contributor

bors bot commented Jul 6, 2022

Merge conflict.

@CohenArthur CohenArthur force-pushed the resolve-generic-args-resolver branch from 8fe0536 to 0da912f Compare July 7, 2022 08:52
@CohenArthur
Copy link
Member Author

bors r+

This resolver replaces the helper function
`ResolveType::type_resolve_generic_args` and will later benefit from
more functionality such as generic disambiguation
@bors
Copy link
Contributor

bors bot commented Jul 7, 2022

Build succeeded:

@bors bors bot merged commit ad0e01d into Rust-GCC:master Jul 7, 2022
@CohenArthur CohenArthur deleted the resolve-generic-args-resolver branch July 7, 2022 09:33
bors bot added a commit that referenced this pull request Jul 7, 2022
1355: Ambiguous generic arg r=CohenArthur a=CohenArthur

Needs #1354. Only review the last commit :)

ast: Rename ConstGenericArg -> GenericArg

This makes the class clearer and exposes the fact that it may contain a
type OR a const value clearer.

Because we now run in ambiguous cases later in the compiler pipeline,
this commit also adds horrible hacks to simply ignore ambiguous generic
arguments and treat them as type arguments.



Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants