-
Notifications
You must be signed in to change notification settings - Fork 14k
Use min_specialization in liballoc #71321
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -363,6 +363,13 @@ pub trait StructuralEq { | |
| /// [impls]: #implementors | ||
| #[stable(feature = "rust1", since = "1.0.0")] | ||
| #[lang = "copy"] | ||
| // FIXME(matthewjasper) This allows copying a type that doesn't implement | ||
| // `Copy` because of unsatisfied lifetime bounds (copying `A<'_>` when only | ||
| // `A<'static>: Copy` and `A<'_>: Clone`). | ||
|
||
| // We have this attribute here for now only because there are quite a few | ||
| // existing specializations on `Copy` that already exist in the standard | ||
| // library, and there's no way to safely have this behavior right now. | ||
| #[rustc_unsafe_specialization_marker] | ||
| pub trait Copy: Clone { | ||
| // Empty. | ||
| } | ||
|
|
||
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.
cc @crgl for the removal here