diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-05-06 13:12:41 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-05-06 16:57:11 +0100 |
commit | cb4d935508def8b250345ba5205a90ad9e177ab4 (patch) | |
tree | 12019e3e3380e793d0d435e59e00ca35d311ff1e /gcc/rust/backend/rust-constexpr.h | |
parent | 9ea940e4dcabbf99fbb44c125a0af7cf82e48146 (diff) | |
download | gcc-cb4d935508def8b250345ba5205a90ad9e177ab4.zip gcc-cb4d935508def8b250345ba5205a90ad9e177ab4.tar.gz gcc-cb4d935508def8b250345ba5205a90ad9e177ab4.tar.bz2 |
Add new monomorphize_clone interface
This interface is required when we monomorphize since types might be
placeholder -> projection -> param -> actual-type
This gives us a clean clone interface to destructure this into its actual
type. This is important so for example if we have a generic trait function
and resolve the function for a specific set of generics we update the
associated types. This works, then when we go to subsitute the same
generic trait again the placeholders are again updated throwing off the
typing for the first type.
Fixes #1133
Diffstat (limited to 'gcc/rust/backend/rust-constexpr.h')
0 files changed, 0 insertions, 0 deletions