diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2018-03-07 07:13:10 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2018-03-07 07:13:10 -0800 |
| commit | 5a5e9410148dd10586acd50e4e99b515b0e3111a (patch) | |
| tree | b644f2041fbb8d945cccb7e09e7c3879f06f8786 /src/librustc_data_structures/sync.rs | |
| parent | a8eaabcdbaa66da93e35025ed0d02ad01c5824c3 (diff) | |
| parent | 62089c335fbdbe2a04c432239dce9e6e8f9a5e8e (diff) | |
Merge branch 'metadata-send-sync' of https://github.com/Zoxc/rust into update-cargo
Diffstat (limited to 'src/librustc_data_structures/sync.rs')
| -rw-r--r-- | src/librustc_data_structures/sync.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc_data_structures/sync.rs b/src/librustc_data_structures/sync.rs index b1ab4eaa069..69fc9ef785e 100644 --- a/src/librustc_data_structures/sync.rs +++ b/src/librustc_data_structures/sync.rs @@ -177,7 +177,7 @@ cfg_if! { macro_rules! rustc_erase_owner { ($v:expr) => {{ let v = $v; - ::rustc_data_structures::sync::assert_send_sync_val(&v); + ::rustc_data_structures::sync::assert_send_val(&v); v.erase_send_sync_owner() }} } @@ -262,6 +262,7 @@ cfg_if! { } pub fn assert_sync<T: ?Sized + Sync>() {} +pub fn assert_send_val<T: ?Sized + Send>(_t: &T) {} pub fn assert_send_sync_val<T: ?Sized + Sync + Send>(_t: &T) {} #[macro_export] |
