Skip to content

Commit ed56c15

Browse files
author
Jorge Aparicio
committed
remove NoSendItem and NoSyncItem
1 parent 29bd9a0 commit ed56c15

File tree

4 files changed

+2
-12
lines changed

4 files changed

+2
-12
lines changed

src/doc/reference.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2377,10 +2377,6 @@ These types help drive the compiler's analysis
23772377
: ___Needs filling in___
23782378
* `no_copy_bound`
23792379
: This type does not implement "copy", even if eligible.
2380-
* `no_send_bound`
2381-
: This type does not implement "send", even if eligible.
2382-
* `no_sync_bound`
2383-
: This type does not implement "sync", even if eligible.
23842380
* `eh_personality`
23852381
: ___Needs filling in___
23862382
* `exchange_free`

src/doc/trpl/unsafe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ Other features provided by lang items include:
707707
various kinds; lang items `send`, `sync` and `copy`.
708708
- the marker types and variance indicators found in
709709
`std::marker`; lang items `covariant_type`,
710-
`contravariant_lifetime`, `no_sync_bound`, etc.
710+
`contravariant_lifetime`, etc.
711711

712712
Lang items are loaded lazily by the compiler; e.g. if one never uses
713713
`Box` then there is no need to define functions for `exchange_malloc`

src/librustc/middle/lang_items.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,7 @@ lets_do_this! {
320320
ContravariantLifetimeItem, "contravariant_lifetime", contravariant_lifetime;
321321
InvariantLifetimeItem, "invariant_lifetime", invariant_lifetime;
322322

323-
NoSendItem, "no_send_bound", no_send_bound;
324323
NoCopyItem, "no_copy_bound", no_copy_bound;
325-
NoSyncItem, "no_sync_bound", no_sync_bound;
326324
ManagedItem, "managed_bound", managed_bound;
327325

328326
NonZeroItem, "non_zero", non_zero;

src/librustc/middle/traits/select.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,10 +1554,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
15541554
let tcx = this.tcx();
15551555
match bound {
15561556
ty::BoundSend => {
1557-
if
1558-
Some(def_id) == tcx.lang_items.no_send_bound() ||
1559-
Some(def_id) == tcx.lang_items.managed_bound()
1560-
{
1557+
if Some(def_id) == tcx.lang_items.managed_bound() {
15611558
return Err(Unimplemented)
15621559
}
15631560
}
@@ -1568,7 +1565,6 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
15681565

15691566
ty::BoundSync => {
15701567
if
1571-
Some(def_id) == tcx.lang_items.no_sync_bound() ||
15721568
Some(def_id) == tcx.lang_items.managed_bound() ||
15731569
Some(def_id) == tcx.lang_items.unsafe_type()
15741570
{

0 commit comments

Comments
 (0)