|
| 1 | +error: pub(crate) function inside private module |
| 2 | + --> $DIR/redundant_pub_crate.rs:5:5 |
| 3 | + | |
| 4 | +LL | pub(crate) fn g() {} // private due to m1 |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 6 | + | |
| 7 | + = note: `-D clippy::redundant-pub-crate` implied by `-D warnings` |
| 8 | + = help: consider using `pub` instead of `pub(crate)` |
| 9 | + |
| 10 | +error: pub(crate) function inside private module |
| 11 | + --> $DIR/redundant_pub_crate.rs:10:9 |
| 12 | + | |
| 13 | +LL | pub(crate) fn g() {} // private due to m1_1 and m1 |
| 14 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 15 | + | |
| 16 | + = help: consider using `pub` instead of `pub(crate)` |
| 17 | + |
| 18 | +error: pub(crate) module inside private module |
| 19 | + --> $DIR/redundant_pub_crate.rs:14:5 |
| 20 | + | |
| 21 | +LL | / pub(crate) mod m1_2 { |
| 22 | +LL | | // ^ private due to m1 |
| 23 | +LL | | fn f() {} |
| 24 | +LL | | pub(crate) fn g() {} // private due to m1_2 and m1 |
| 25 | +LL | | pub fn h() {} |
| 26 | +LL | | } |
| 27 | + | |_____^ |
| 28 | + | |
| 29 | + = help: consider using `pub` instead of `pub(crate)` |
| 30 | + |
| 31 | +error: pub(crate) function inside private module |
| 32 | + --> $DIR/redundant_pub_crate.rs:17:9 |
| 33 | + | |
| 34 | +LL | pub(crate) fn g() {} // private due to m1_2 and m1 |
| 35 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 36 | + | |
| 37 | + = help: consider using `pub` instead of `pub(crate)` |
| 38 | + |
| 39 | +error: pub(crate) function inside private module |
| 40 | + --> $DIR/redundant_pub_crate.rs:23:9 |
| 41 | + | |
| 42 | +LL | pub(crate) fn g() {} // private due to m1 |
| 43 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 44 | + | |
| 45 | + = help: consider using `pub` instead of `pub(crate)` |
| 46 | + |
| 47 | +error: pub(crate) function inside private module |
| 48 | + --> $DIR/redundant_pub_crate.rs:30:5 |
| 49 | + | |
| 50 | +LL | pub(crate) fn g() {} // already crate visible due to m2 |
| 51 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 52 | + | |
| 53 | + = help: consider using `pub` instead of `pub(crate)` |
| 54 | + |
| 55 | +error: pub(crate) function inside private module |
| 56 | + --> $DIR/redundant_pub_crate.rs:35:9 |
| 57 | + | |
| 58 | +LL | pub(crate) fn g() {} // private due to m2_1 |
| 59 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 60 | + | |
| 61 | + = help: consider using `pub` instead of `pub(crate)` |
| 62 | + |
| 63 | +error: pub(crate) module inside private module |
| 64 | + --> $DIR/redundant_pub_crate.rs:39:5 |
| 65 | + | |
| 66 | +LL | / pub(crate) mod m2_2 { |
| 67 | +LL | | // ^ already crate visible due to m2 |
| 68 | +LL | | fn f() {} |
| 69 | +LL | | pub(crate) fn g() {} // already crate visible due to m2_2 and m2 |
| 70 | +LL | | pub fn h() {} |
| 71 | +LL | | } |
| 72 | + | |_____^ |
| 73 | + | |
| 74 | + = help: consider using `pub` instead of `pub(crate)` |
| 75 | + |
| 76 | +error: pub(crate) function inside private module |
| 77 | + --> $DIR/redundant_pub_crate.rs:42:9 |
| 78 | + | |
| 79 | +LL | pub(crate) fn g() {} // already crate visible due to m2_2 and m2 |
| 80 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 81 | + | |
| 82 | + = help: consider using `pub` instead of `pub(crate)` |
| 83 | + |
| 84 | +error: pub(crate) function inside private module |
| 85 | + --> $DIR/redundant_pub_crate.rs:48:9 |
| 86 | + | |
| 87 | +LL | pub(crate) fn g() {} // already crate visible due to m2 |
| 88 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 89 | + | |
| 90 | + = help: consider using `pub` instead of `pub(crate)` |
| 91 | + |
| 92 | +error: pub(crate) function inside private module |
| 93 | + --> $DIR/redundant_pub_crate.rs:60:9 |
| 94 | + | |
| 95 | +LL | pub(crate) fn g() {} // private due to m3_1 |
| 96 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 97 | + | |
| 98 | + = help: consider using `pub` instead of `pub(crate)` |
| 99 | + |
| 100 | +error: pub(crate) function inside private module |
| 101 | + --> $DIR/redundant_pub_crate.rs:67:9 |
| 102 | + | |
| 103 | +LL | pub(crate) fn g() {} // already crate visible due to m3_2 |
| 104 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 105 | + | |
| 106 | + = help: consider using `pub` instead of `pub(crate)` |
| 107 | + |
| 108 | +error: pub(crate) function inside private module |
| 109 | + --> $DIR/redundant_pub_crate.rs:80:5 |
| 110 | + | |
| 111 | +LL | pub(crate) fn g() {} // private: not re-exported by `pub use m4::*` |
| 112 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 113 | + | |
| 114 | + = help: consider using `pub` instead of `pub(crate)` |
| 115 | + |
| 116 | +error: pub(crate) function inside private module |
| 117 | + --> $DIR/redundant_pub_crate.rs:85:9 |
| 118 | + | |
| 119 | +LL | pub(crate) fn g() {} // private due to m4_1 |
| 120 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 121 | + | |
| 122 | + = help: consider using `pub` instead of `pub(crate)` |
| 123 | + |
| 124 | +error: pub(crate) module inside private module |
| 125 | + --> $DIR/redundant_pub_crate.rs:89:5 |
| 126 | + | |
| 127 | +LL | / pub(crate) mod m4_2 { |
| 128 | +LL | | // ^ private: not re-exported by `pub use m4::*` |
| 129 | +LL | | fn f() {} |
| 130 | +LL | | pub(crate) fn g() {} // private due to m4_2 |
| 131 | +LL | | pub fn h() {} |
| 132 | +LL | | } |
| 133 | + | |_____^ |
| 134 | + | |
| 135 | + = help: consider using `pub` instead of `pub(crate)` |
| 136 | + |
| 137 | +error: pub(crate) function inside private module |
| 138 | + --> $DIR/redundant_pub_crate.rs:92:9 |
| 139 | + | |
| 140 | +LL | pub(crate) fn g() {} // private due to m4_2 |
| 141 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 142 | + | |
| 143 | + = help: consider using `pub` instead of `pub(crate)` |
| 144 | + |
| 145 | +error: aborting due to 16 previous errors |
| 146 | + |
0 commit comments