Improvements to feature staging
This gets rid of the 'experimental' level, removes the non-staged_api case (i.e. stability levels for out-of-tree crates), and lets the staged_api attributes use 'unstable' and 'deprecated' lints. This makes the transition period to the full feature staging design a bit nicer.
This commit is contained in:
parent
5364c4853f
commit
1f70acbf4c
105 changed files with 386 additions and 392 deletions
|
@ -207,14 +207,14 @@ impl Builder {
|
|||
}
|
||||
|
||||
/// Redirect thread-local stdout.
|
||||
#[experimental = "Will likely go away after proc removal"]
|
||||
#[unstable = "Will likely go away after proc removal"]
|
||||
pub fn stdout(mut self, stdout: Box<Writer + Send>) -> Builder {
|
||||
self.stdout = Some(stdout);
|
||||
self
|
||||
}
|
||||
|
||||
/// Redirect thread-local stderr.
|
||||
#[experimental = "Will likely go away after proc removal"]
|
||||
#[unstable = "Will likely go away after proc removal"]
|
||||
pub fn stderr(mut self, stderr: Box<Writer + Send>) -> Builder {
|
||||
self.stderr = Some(stderr);
|
||||
self
|
||||
|
@ -483,7 +483,7 @@ impl<'a, T: Send + 'a> JoinGuard<'a, T> {
|
|||
|
||||
impl<T: Send> JoinGuard<'static, T> {
|
||||
/// Detaches the child thread, allowing it to outlive its parent.
|
||||
#[experimental = "unsure whether this API imposes limitations elsewhere"]
|
||||
#[unstable = "unsure whether this API imposes limitations elsewhere"]
|
||||
pub fn detach(mut self) {
|
||||
unsafe { imp::detach(self.native) };
|
||||
self.joined = true; // avoid joining in the destructor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue