We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 475013f commit 7978783Copy full SHA for 7978783
src/rustc/middle/ty.rs
@@ -1340,6 +1340,10 @@ fn remove_implicit(k: kind) -> kind {
1340
k - kind_(KIND_MASK_IMPLICIT)
1341
}
1342
1343
+fn remove_copyable(k: kind) -> kind {
1344
+ k - kind_(KIND_MASK_COPY)
1345
+}
1346
+
1347
impl operators for kind {
1348
fn &(other: kind) -> kind {
1349
lower_kind(self, other)
@@ -1508,7 +1512,7 @@ fn type_kind(cx: ctxt, ty: t) -> kind {
1508
1512
// ...but classes with dtors are never copyable (they can be
1509
1513
// sendable)
1510
1514
if ty::has_dtor(cx, did) {
1511
- lowest = lower_kind(lowest, kind_noncopyable());
1515
+ lowest = remove_copyable(lowest);
1516
1517
lowest
1518
0 commit comments