Skip to content

Commit 7046949

Browse files
committed
Auto merge of #48005 - panicbit:env_unimpl_send_sync, r=<try>
Unimplement Send/Sync for ::env::{Args,ArgsOs,Vars,VarsOs} Fixes #48004
2 parents b0a396b + b439632 commit 7046949

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/libstd/env.rs

+12
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,12 @@ pub fn args_os() -> ArgsOs {
723723
ArgsOs { inner: sys::args::args() }
724724
}
725725

726+
#[stable(feature = "env_unimpl_send_sync", since = "1.25.0")]
727+
impl !Send for Args {}
728+
729+
#[stable(feature = "env_unimpl_send_sync", since = "1.25.0")]
730+
impl !Sync for Args {}
731+
726732
#[stable(feature = "env", since = "1.0.0")]
727733
impl Iterator for Args {
728734
type Item = String;
@@ -754,6 +760,12 @@ impl fmt::Debug for Args {
754760
}
755761
}
756762

763+
#[stable(feature = "env_unimpl_send_sync", since = "1.25.0")]
764+
impl !Send for ArgsOs {}
765+
766+
#[stable(feature = "env_unimpl_send_sync", since = "1.25.0")]
767+
impl !Sync for ArgsOs {}
768+
757769
#[stable(feature = "env", since = "1.0.0")]
758770
impl Iterator for ArgsOs {
759771
type Item = OsString;

0 commit comments

Comments
 (0)