From 241a6f69309d177f0cb212851cbddcdf8ffdf10b Mon Sep 17 00:00:00 2001 From: Jacob Pratt Date: Fri, 20 May 2022 21:06:44 -0400 Subject: [PATCH] Remove `crate` visibility modifier in libs, tests --- tests/source/fn-simple.rs | 2 +- tests/source/pub-restricted.rs | 13 ------------- tests/target/fn-simple.rs | 2 +- tests/target/pub-restricted.rs | 13 ------------- 4 files changed, 2 insertions(+), 28 deletions(-) diff --git a/tests/source/fn-simple.rs b/tests/source/fn-simple.rs index 528b9a0292a9..12a50c013a91 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 String)>(records: &Vec, key_fn: F) -> HashMap {} diff --git a/tests/source/pub-restricted.rs b/tests/source/pub-restricted.rs index 30051fa72ee7..5683acbf3aa9 100644 --- a/tests/source/pub-restricted.rs +++ b/tests/source/pub-restricted.rs @@ -24,19 +24,6 @@ pub( crate ) enum WriteState { WriteData(Writer), } - crate enum WriteState { - WriteId { - id: U64Writer, - size: U64Writer, - payload: Option>, - }, - WriteSize { - size: U64Writer, - payload: Option>, - }, - WriteData(Writer), -} - pub(in ::global:: path :: to::some_mod ) enum WriteState { WriteId { id: U64Writer, diff --git a/tests/target/fn-simple.rs b/tests/target/fn-simple.rs index 692739fa6a9f..e725269360d2 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 String)>(records: &Vec, key_fn: F) -> HashMap {} diff --git a/tests/target/pub-restricted.rs b/tests/target/pub-restricted.rs index 8cc2ade612af..0e178ef10136 100644 --- a/tests/target/pub-restricted.rs +++ b/tests/target/pub-restricted.rs @@ -24,19 +24,6 @@ pub(crate) enum WriteState { WriteData(Writer), } -crate enum WriteState { - WriteId { - id: U64Writer, - size: U64Writer, - payload: Option>, - }, - WriteSize { - size: U64Writer, - payload: Option>, - }, - WriteData(Writer), -} - pub(in global::path::to::some_mod) enum WriteState { WriteId { id: U64Writer,