about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2025-08-06 15:55:44 +0200
committerGitHub <noreply@github.com>2025-08-06 15:55:44 +0200
commitbde39e58d60c631b8a4ee7204237befb3b98d50b (patch)
treed3c1a680738d9a100f899b28c106ff4bfff3a890
parent21e488c00a302945751f90086d71cd961352cf56 (diff)
parent1eb9b134f52ef9a3ffa28075bc1a1515bcfbaa8c (diff)
downloadrust-bde39e58d60c631b8a4ee7204237befb3b98d50b.tar.gz
rust-bde39e58d60c631b8a4ee7204237befb3b98d50b.zip
Rollup merge of #144836 - chotchki:patch-1, r=tgross35
Change visibility of Args new function

Currently the Args new function is constrained to pub(super) but this stops me from being able to construct Args structs in unit tests.

This pull request is to change this to pub.
-rw-r--r--library/std/src/sys/args/common.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/args/common.rs b/library/std/src/sys/args/common.rs
index e787105a05a..33f3794ee63 100644
--- a/library/std/src/sys/args/common.rs
+++ b/library/std/src/sys/args/common.rs
@@ -12,7 +12,7 @@ impl !Sync for Args {}
 
 impl Args {
     #[inline]
-    pub(super) fn new(args: Vec<OsString>) -> Self {
+    pub fn new(args: Vec<OsString>) -> Self {
         Args { iter: args.into_iter() }
     }
 }