about summary refs log tree commit diff
path: root/src/libstd/sync/mpsc/select.rs
diff options
context:
space:
mode:
authorljedrz <ljedrz@gmail.com>2018-07-10 20:35:36 +0200
committerljedrz <ljedrz@gmail.com>2018-07-10 20:35:36 +0200
commit560d8079ec26f2a45ecb80e95d24917025e02104 (patch)
tree6e288b50c28bcd6386874e3f4af71ff10431d190 /src/libstd/sync/mpsc/select.rs
parent77117e383676176116851d7d3ec04b5e0cf0c456 (diff)
downloadrust-560d8079ec26f2a45ecb80e95d24917025e02104.tar.gz
rust-560d8079ec26f2a45ecb80e95d24917025e02104.zip
Deny bare trait objects in `src/libstd`.
Diffstat (limited to 'src/libstd/sync/mpsc/select.rs')
-rw-r--r--src/libstd/sync/mpsc/select.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sync/mpsc/select.rs b/src/libstd/sync/mpsc/select.rs
index 9310dad9172..a7a284cfb79 100644
--- a/src/libstd/sync/mpsc/select.rs
+++ b/src/libstd/sync/mpsc/select.rs
@@ -93,7 +93,7 @@ pub struct Handle<'rx, T:Send+'rx> {
     next: *mut Handle<'static, ()>,
     prev: *mut Handle<'static, ()>,
     added: bool,
-    packet: &'rx (Packet+'rx),
+    packet: &'rx (dyn Packet+'rx),
 
     // due to our fun transmutes, we be sure to place this at the end. (nothing
     // previous relies on T)