Skip to content

Commit eda1dae

Browse files
committed
---
yaml --- r: 109852 b: refs/heads/master c: 35c98a8 h: refs/heads/master v: v3
1 parent 37317fb commit eda1dae

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
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: fb19d680f41416c52c41b06bad89c71b529f248d
2+
refs/heads/master: 35c98a8378b363edccdcae2b16b6d2132da79d78
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: c7fac4471201977fdb1c0c0a26c87287e12dc644
55
refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d

trunk/src/librustc/middle/kind.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -450,17 +450,6 @@ fn check_copy(cx: &Context, ty: ty::t, sp: Span, reason: &str) {
450450
}
451451
}
452452

453-
pub fn check_send(cx: &Context, ty: ty::t, sp: Span) -> bool {
454-
if !ty::type_is_sendable(cx.tcx, ty) {
455-
cx.tcx.sess.span_err(
456-
sp, format!("value has non-sendable type `{}`",
457-
ty_to_str(cx.tcx, ty)));
458-
false
459-
} else {
460-
true
461-
}
462-
}
463-
464453
pub fn check_static(tcx: &ty::ctxt, ty: ty::t, sp: Span) -> bool {
465454
if !ty::type_is_static(tcx, ty) {
466455
match ty::get(ty).sty {

0 commit comments

Comments
 (0)