]> git.lizzy.rs Git - rust.git/commitdiff
remove `NoSendItem` and `NoSyncItem`
authorJorge Aparicio <japaricious@gmail.com>
Mon, 19 Jan 2015 15:52:11 +0000 (10:52 -0500)
committerJorge Aparicio <japaricious@gmail.com>
Wed, 21 Jan 2015 05:45:35 +0000 (00:45 -0500)
src/doc/reference.md
src/doc/trpl/unsafe.md
src/librustc/middle/lang_items.rs
src/librustc/middle/traits/select.rs

index d3af4ab1c7467574d076cd6c654c6c1a08181127..3cbfad52c05239fddba07c90bae99337c9255f9e 100644 (file)
@@ -2377,10 +2377,6 @@ These types help drive the compiler's analysis
   : ___Needs filling in___
 * `no_copy_bound`
   : This type does not implement "copy", even if eligible.
-* `no_send_bound`
-  : This type does not implement "send", even if eligible.
-* `no_sync_bound`
-  : This type does not implement "sync", even if eligible.
 * `eh_personality`
   : ___Needs filling in___
 * `exchange_free`
index 2a66b4a01f7a9a80eeac456c6f3816b2eabcb6da..3acd1eefe89d06f1b7a8578eaa76c1ff7b4b13b4 100644 (file)
@@ -707,7 +707,7 @@ Other features provided by lang items include:
   various kinds; lang items `send`, `sync` and `copy`.
 - the marker types and variance indicators found in
   `std::marker`; lang items `covariant_type`,
-  `contravariant_lifetime`, `no_sync_bound`, etc.
+  `contravariant_lifetime`, etc.
 
 Lang items are loaded lazily by the compiler; e.g. if one never uses
 `Box` then there is no need to define functions for `exchange_malloc`
index ff79ace992409f0ae50ca7a684b031dcefb32e6b..2c0de9d16348618359f78709e9739e031031329e 100644 (file)
@@ -320,9 +320,7 @@ pub fn collect_language_items(krate: &ast::Crate,
     ContravariantLifetimeItem,       "contravariant_lifetime",  contravariant_lifetime;
     InvariantLifetimeItem,           "invariant_lifetime",      invariant_lifetime;
 
-    NoSendItem,                      "no_send_bound",           no_send_bound;
     NoCopyItem,                      "no_copy_bound",           no_copy_bound;
-    NoSyncItem,                      "no_sync_bound",           no_sync_bound;
     ManagedItem,                     "managed_bound",           managed_bound;
 
     NonZeroItem,                     "non_zero",                non_zero;
index 62649653a6972374b5be5bfb901882e28f52d3eb..e8d82150ade4bd2888c9d06ad5c93b7e1beafd4d 100644 (file)
@@ -1554,10 +1554,7 @@ fn nominal<'cx, 'tcx>(this: &mut SelectionContext<'cx, 'tcx>,
             let tcx = this.tcx();
             match bound {
                 ty::BoundSend => {
-                    if
-                        Some(def_id) == tcx.lang_items.no_send_bound() ||
-                        Some(def_id) == tcx.lang_items.managed_bound()
-                    {
+                    if Some(def_id) == tcx.lang_items.managed_bound() {
                         return Err(Unimplemented)
                     }
                 }
@@ -1568,7 +1565,6 @@ fn nominal<'cx, 'tcx>(this: &mut SelectionContext<'cx, 'tcx>,
 
                 ty::BoundSync => {
                     if
-                        Some(def_id) == tcx.lang_items.no_sync_bound() ||
                         Some(def_id) == tcx.lang_items.managed_bound() ||
                         Some(def_id) == tcx.lang_items.unsafe_type()
                     {