-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(exporter): thir: call: separate trait VS method generic args
This PR separates method generic args and trait generic args of the `call` nodes of THIR expressions. Consider the following example: ```rust trait MyTrait<TraitType> { fn meth<MethType>(...) {...} } fn example_call<TraitType, SelfType: MyTrait<TraitType>>(x: SelfType) { x.meth::<String>(...) } ``` Before this commit, the call `x.meth::<String>` produced a `Call` node whose field `generic_args` was `[SelfType, TraitType, String]`. Now, that `Call` node has a trait-specific generic arguments field `[SelfType, TraitType]` and a method/function-specific generic arguments field `[String].` This commit does no change to the engine, that will be for a subsequent PR. This PR is related to #719.
- Loading branch information
Showing
2 changed files
with
45 additions
and
16 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