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

Use core's AssertParamIsClone and AssertParamIsCopy traits #3329

Open
CohenArthur opened this issue Dec 26, 2024 · 0 comments
Open

Use core's AssertParamIsClone and AssertParamIsCopy traits #3329

CohenArthur opened this issue Dec 26, 2024 · 0 comments

Comments

@CohenArthur
Copy link
Member

CohenArthur commented Dec 26, 2024

These traits are used to produce better errors when expanding derive(Clone) macros, but they are not lang items. Hence we cannot refer to them using a lang-item path, and instead need to use a full-blown core path (::core::clone::AssertParamIsCopy). This is problematic for us as we cannot yet compile or distribute core, and thus we do not always link user code to it.

Once we have figured out how to distribute core, we'll be able to make use of these assertions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant