summaryrefslogtreecommitdiffstats
path: root/library/std/tests/common/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/tests/common/mod.rs')
-rw-r--r--library/std/tests/common/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/std/tests/common/mod.rs b/library/std/tests/common/mod.rs
index fce220223..358c2c3f9 100644
--- a/library/std/tests/common/mod.rs
+++ b/library/std/tests/common/mod.rs
@@ -20,15 +20,15 @@ pub(crate) fn test_rng() -> rand_xorshift::XorShiftRng {
}
// Copied from std::sys_common::io
-pub struct TempDir(PathBuf);
+pub(crate) struct TempDir(PathBuf);
impl TempDir {
- pub fn join(&self, path: &str) -> PathBuf {
+ pub(crate) fn join(&self, path: &str) -> PathBuf {
let TempDir(ref p) = *self;
p.join(path)
}
- pub fn path(&self) -> &Path {
+ pub(crate) fn path(&self) -> &Path {
let TempDir(ref p) = *self;
p
}
@@ -49,7 +49,7 @@ impl Drop for TempDir {
}
#[track_caller] // for `test_rng`
-pub fn tmpdir() -> TempDir {
+pub(crate) fn tmpdir() -> TempDir {
let p = env::temp_dir();
let mut r = test_rng();
let ret = p.join(&format!("rust-{}", r.next_u32()));