-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Allow more !Copy
impls
#101875
Allow more !Copy
impls
#101875
Conversation
42a7499
to
7b2daf6
Compare
This comment has been minimized.
This comment has been minimized.
d1ccfd3
to
3d2e116
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
3d2e116
to
d0954bf
Compare
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
d0954bf
to
564de74
Compare
r? types (am sick right now, can't review much) |
564de74
to
3a0362f
Compare
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.
one nit, then r=me
3a0362f
to
d201498
Compare
Okay, now using
I don't think I can do |
@fmease: 🔑 Insufficient privileges: Not in reviewers |
d201498
to
28e0c5a
Compare
ready |
@bors r+ rollup |
…pls, r=lcnr Allow more `!Copy` impls You can already implement `!Copy` for a lot of types (with `#![feature(negative_impls)]`). However, before this PR you could not implement `!Copy` for ADTs whose fields don't implement `Copy` which didn't make any sense. Further, you couldn't implement `!Copy` for types impl'ing `Drop` (equally nonsensical). `@rustbot` label T-types F-negative_impls Fixes rust-lang#101836. r? types
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#101875 (Allow more `!Copy` impls) - rust-lang#101996 (Don't duplicate region names for late-bound regions in print of Binder) - rust-lang#102181 (Add regression test) - rust-lang#102273 (Allow `~const` bounds on non-const functions) - rust-lang#102286 (Recover some items that expect braces and don't take semicolons) Failed merges: - rust-lang#102314 (Add a label to struct/enum/union ident name) r? `@ghost` `@rustbot` modify labels: rollup
You can already implement
!Copy
for a lot of types (with#![feature(negative_impls)]
). However, before this PR you could not implement!Copy
for ADTs whose fields don't implementCopy
which didn't make any sense. Further, you couldn't implement!Copy
for types impl'ingDrop
(equally nonsensical).@rustbot label T-types F-negative_impls
Fixes #101836.
r? types