about summary refs log tree commit diff
path: root/src/librustc_data_structures
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2019-01-07 16:25:35 +0100
committerGitHub <noreply@github.com>2019-01-07 16:25:35 +0100
commite319f12cf4bfb89b744d83c043fc0ca0dc036080 (patch)
tree2740a9f906d676ffb721107e7fb3c6e1052e041d /src/librustc_data_structures
parentc89b07aa520517d911aa269bef7f260fa61c6718 (diff)
parent75b2e143f125d7e214b8d3e54b3079caba1cc065 (diff)
downloadrust-e319f12cf4bfb89b744d83c043fc0ca0dc036080.tar.gz
rust-e319f12cf4bfb89b744d83c043fc0ca0dc036080.zip
Rollup merge of #57308 - Zoxc:controller-sync, r=michaelwoerister
Make CompileController thread-safe
Diffstat (limited to 'src/librustc_data_structures')
-rw-r--r--src/librustc_data_structures/sync.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_data_structures/sync.rs b/src/librustc_data_structures/sync.rs
index d935eb7bdab..c18a5328dd5 100644
--- a/src/librustc_data_structures/sync.rs
+++ b/src/librustc_data_structures/sync.rs
@@ -323,6 +323,7 @@ cfg_if! {
 }
 
 pub fn assert_sync<T: ?Sized + Sync>() {}
+pub fn assert_send<T: ?Sized + Send>() {}
 pub fn assert_send_val<T: ?Sized + Send>(_t: &T) {}
 pub fn assert_send_sync_val<T: ?Sized + Sync + Send>(_t: &T) {}