Skip to content

fix(emit): reconstruct const generic args in the expansion sanitizer#16

Open
jakobjung10 wants to merge 1 commit into
zalanlevai:mainfrom
jakobjung10:fix/const-generic-arg-rebrace
Open

fix(emit): reconstruct const generic args in the expansion sanitizer#16
jakobjung10 wants to merge 1 commit into
zalanlevai:mainfrom
jakobjung10:fix/const-generic-arg-rebrace

Conversation

@jakobjung10

Copy link
Copy Markdown

sanitize_generic_args dropped const generic arguments, emitting trait paths without them (e.g. <T as Trait>::Assoc instead of <T as Trait<N>>::Assoc). Reconstruct them through a new const_ast wrapper over the existing print_const, mirroring region_ast.

`sanitize_generic_args` dropped const generic arguments, emitting trait
paths without them (e.g. `<T as Trait>::Assoc` instead of
`<T as Trait<N>>::Assoc`). Reconstruct them through a new `const_ast`
wrapper over the existing `print_const`, mirroring `region_ast`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant