Skip to content

Commit c73dd10

Browse files
committed
---
yaml --- r: 13195 b: refs/heads/master c: 7978783 h: refs/heads/master i: 13193: 109a9d2 13191: 358da6b v: v3
1 parent 930fdd6 commit c73dd10

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 475013fcb60607130b7661f601eee3391ac2bd47
2+
refs/heads/master: 79787833bbf1c705bb1fa877a88339260a90ec11
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/rustc/middle/ty.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1340,6 +1340,10 @@ fn remove_implicit(k: kind) -> kind {
13401340
k - kind_(KIND_MASK_IMPLICIT)
13411341
}
13421342

1343+
fn remove_copyable(k: kind) -> kind {
1344+
k - kind_(KIND_MASK_COPY)
1345+
}
1346+
13431347
impl operators for kind {
13441348
fn &(other: kind) -> kind {
13451349
lower_kind(self, other)
@@ -1508,7 +1512,7 @@ fn type_kind(cx: ctxt, ty: t) -> kind {
15081512
// ...but classes with dtors are never copyable (they can be
15091513
// sendable)
15101514
if ty::has_dtor(cx, did) {
1511-
lowest = lower_kind(lowest, kind_noncopyable());
1515+
lowest = remove_copyable(lowest);
15121516
}
15131517
lowest
15141518
}

0 commit comments

Comments
 (0)