Skip to content

Commit

Permalink
Unimplement Send/Sync for ::env::{Args,ArgsOs,Vars,VarsOs}
Browse files Browse the repository at this point in the history
  • Loading branch information
panicbit committed Feb 4, 2018
1 parent 0c6091f commit b439632
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/libstd/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,12 @@ pub fn args_os() -> ArgsOs {
ArgsOs { inner: sys::args::args() }
}

#[stable(feature = "env_unimpl_send_sync", since = "1.25.0")]
impl !Send for Args {}

#[stable(feature = "env_unimpl_send_sync", since = "1.25.0")]
impl !Sync for Args {}

#[stable(feature = "env", since = "1.0.0")]
impl Iterator for Args {
type Item = String;
Expand Down Expand Up @@ -754,6 +760,12 @@ impl fmt::Debug for Args {
}
}

#[stable(feature = "env_unimpl_send_sync", since = "1.25.0")]
impl !Send for ArgsOs {}

#[stable(feature = "env_unimpl_send_sync", since = "1.25.0")]
impl !Sync for ArgsOs {}

#[stable(feature = "env", since = "1.0.0")]
impl Iterator for ArgsOs {
type Item = OsString;
Expand Down

0 comments on commit b439632

Please sign in to comment.