Kevin Reid
5dcc418f62
Document the conditional existence of alloc::sync
and alloc::task
.
...
The wording is copied from `std::sync::atomic::AtomicPtr`, with
additional advice on how to `#[cfg]` for it.
2022-06-17 20:03:23 -07:00
Michael Howell
60ff298070
Document From implementations for Waker and RawWaker
2021-04-22 14:16:33 -07:00
Joshua Nelson
3733275854
Update the bootstrap compiler
...
Note this does not change `core::derive` since it was merged after the
beta bump.
2021-02-20 17:19:30 -05:00
Yoshua Wuyts
2c8bf1db54
Stabilize the Wake trait
...
Co-Authored-By: Ashley Mannix <kodraus@hey.com>
2021-02-03 16:54:29 +01:00
Jonas Schievink
ac37c326ae
Rollup merge of #79285 - yoshuawuyts:stabilize-arc_mutate_strong_count, r=m-ou-se
...
Stabilize Arc::{increment,decrement}_strong_count
Tracking issue: https://github.com/rust-lang/rust/issues/71983
Stabilizes `Arc::{incr,decr}_strong_count`, enabling unsafely incrementing an decrementing the Arc strong count directly with fewer gotchas. This API was first introduced on nightly six months ago, and has not seen any changes since. The initial PR showed two existing pieces of code that would benefit from this API, and included a change inside the stdlib to use this.
Given the small surface area, predictable use, and no changes since introduction, I'd like to propose we stabilize this.
closes https://github.com/rust-lang/rust/issues/71983
r? `@Mark-Simulacrum`
## Links
* [Initial implementation](https://github.com/rust-lang/rust/pull/70733 )
* [Motivation from #68700 ](https://github.com/rust-lang/rust/pull/68700#discussion_r396169064 )
* [Real world example in an executor](https://docs.rs/extreme/666.666.666666/src/extreme/lib.rs.html#13 )
2021-01-31 01:47:20 +01:00
Joshua Nelson
c819a4c025
Don't mark ineffective_unstable_trait_impl
as an internal lint
...
It's not an internal lint:
- It's not in the rustc::internal lint group
- It's on unconditionally, because it actually lints `staged_api`, not
the compiler
This fixes a bug where `#[deny(rustc::internal)]` would warn that
`rustc::internal` was an unknown lint.
2021-01-15 17:31:10 -05:00
Yoshua Wuyts
a55039df84
Stabilize Arc::{incr,decr}_strong_count
2020-12-18 23:34:48 +01:00
Mara Bos
471fb622aa
Allow unstable From impl for [Raw]Waker.
2020-09-11 13:36:45 +02:00
Surya Midatala
11f69796ee
Move to intra-doc links for task.rs and vec.rs
2020-08-18 21:47:23 +05:30
mark
2c31b45ae8
mv std libs to library/
2020-07-27 19:51:13 -05:00