-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Make Clone
a const_trait
#142756
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
base: master
Are you sure you want to change the base?
Make Clone
a const_trait
#142756
Conversation
bb9aeda
to
f942fef
Compare
This comment has been minimized.
This comment has been minimized.
Cc @rust-lang/wg-const-eval |
cc @rust-lang/project-const-traits |
f942fef
to
9185143
Compare
@@ -157,6 +157,8 @@ mod uninit; | |||
#[lang = "clone"] | |||
#[rustc_diagnostic_item = "Clone"] | |||
#[rustc_trivial_field_reads] | |||
#[rustc_const_unstable(feature = "const_clone", issue = "142757")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont think we need per trait gates? Seems like it could cause ppl to add lots of feature gates. And we can stabilize individual const traits without stabilizing the full set either way. Library feature gates are funny this way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah looks like this is how we did it before, too. Let's keep doing that
@bors r+ rollup |
See tracking issue for justification.