about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2022-05-20 21:06:44 -0400
committerJacob Pratt <jacob@jhpratt.dev>2022-05-21 00:32:47 -0400
commit241a6f69309d177f0cb212851cbddcdf8ffdf10b (patch)
tree11577930f1af5dd957c360302c0448c5666f3afe
parent86940d2652acbede150f9fc52111688468c2be62 (diff)
downloadrust-241a6f69309d177f0cb212851cbddcdf8ffdf10b.tar.gz
rust-241a6f69309d177f0cb212851cbddcdf8ffdf10b.zip
Remove `crate` visibility modifier in libs, tests
-rw-r--r--tests/source/fn-simple.rs2
-rw-r--r--tests/source/pub-restricted.rs13
-rw-r--r--tests/target/fn-simple.rs2
-rw-r--r--tests/target/pub-restricted.rs13
4 files changed, 2 insertions, 28 deletions
diff --git a/tests/source/fn-simple.rs b/tests/source/fn-simple.rs
index 528b9a0292a..12a50c013a9 100644
--- a/tests/source/fn-simple.rs
+++ b/tests/source/fn-simple.rs
@@ -63,7 +63,7 @@ mod foo {
 // #2082
 pub(crate) fn init() {}
 
-crate fn init() {}
+pub(crate) fn init() {}
 
 // #2630
 fn make_map<T, F: (Fn(&T) -> String)>(records: &Vec<T>, key_fn: F) -> HashMap<String, usize> {}
diff --git a/tests/source/pub-restricted.rs b/tests/source/pub-restricted.rs
index 30051fa72ee..5683acbf3aa 100644
--- a/tests/source/pub-restricted.rs
+++ b/tests/source/pub-restricted.rs
@@ -24,19 +24,6 @@ pub(  crate  ) enum WriteState<D> {
     WriteData(Writer<D>),
 }
 
-  crate   enum WriteState<D> {
-    WriteId {
-        id: U64Writer,
-        size: U64Writer,
-        payload: Option<Writer<D>>,
-    },
-    WriteSize {
-        size: U64Writer,
-        payload: Option<Writer<D>>,
-    },
-    WriteData(Writer<D>),
-}
-
 pub(in  ::global::  path :: to::some_mod  ) enum WriteState<D> {
     WriteId {
         id: U64Writer,
diff --git a/tests/target/fn-simple.rs b/tests/target/fn-simple.rs
index 692739fa6a9..e725269360d 100644
--- a/tests/target/fn-simple.rs
+++ b/tests/target/fn-simple.rs
@@ -105,7 +105,7 @@ mod foo {
 // #2082
 pub(crate) fn init() {}
 
-crate fn init() {}
+pub(crate) fn init() {}
 
 // #2630
 fn make_map<T, F: (Fn(&T) -> String)>(records: &Vec<T>, key_fn: F) -> HashMap<String, usize> {}
diff --git a/tests/target/pub-restricted.rs b/tests/target/pub-restricted.rs
index 8cc2ade612a..0e178ef1013 100644
--- a/tests/target/pub-restricted.rs
+++ b/tests/target/pub-restricted.rs
@@ -24,19 +24,6 @@ pub(crate) enum WriteState<D> {
     WriteData(Writer<D>),
 }
 
-crate enum WriteState<D> {
-    WriteId {
-        id: U64Writer,
-        size: U64Writer,
-        payload: Option<Writer<D>>,
-    },
-    WriteSize {
-        size: U64Writer,
-        payload: Option<Writer<D>>,
-    },
-    WriteData(Writer<D>),
-}
-
 pub(in global::path::to::some_mod) enum WriteState<D> {
     WriteId {
         id: U64Writer,