Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions library/std/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ pub struct VarsOs {
inner: env_imp::Env,
}

#[stable(feature = "env_vars_unimpl_send_sync", since = "CURRENT_RUSTC_VERSION")]
impl !Send for VarsOs {}

#[stable(feature = "env_vars_unimpl_send_sync", since = "CURRENT_RUSTC_VERSION")]
impl !Sync for VarsOs {}

/// Returns an iterator of (variable, value) pairs of strings, for all the
/// environment variables of the current process.
///
Expand Down
3 changes: 0 additions & 3 deletions library/std/src/sys/env/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ impl fmt::Debug for Env {
}
}

impl !Send for Env {}
impl !Sync for Env {}

impl Iterator for Env {
type Item = (OsString, OsString);
fn next(&mut self) -> Option<(OsString, OsString)> {
Expand Down
Loading