|
| 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 | + |
| 9 | +error: pub(crate) function inside private module |
| 10 | + --> $DIR/redundant_pub_crate.rs:10:9 |
| 11 | + | |
| 12 | +LL | pub(crate) fn g() {} // private due to m1_1 and m1 |
| 13 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 14 | + |
| 15 | +error: pub(crate) module inside private module |
| 16 | + --> $DIR/redundant_pub_crate.rs:14:5 |
| 17 | + | |
| 18 | +LL | / pub(crate) mod m1_2 { |
| 19 | +LL | | // ^ private due to m1 |
| 20 | +LL | | fn f() {} |
| 21 | +LL | | pub(crate) fn g() {} // private due to m1_2 and m1 |
| 22 | +LL | | pub fn h() {} |
| 23 | +LL | | } |
| 24 | + | |_____^ |
| 25 | + |
| 26 | +error: pub(crate) function inside private module |
| 27 | + --> $DIR/redundant_pub_crate.rs:17:9 |
| 28 | + | |
| 29 | +LL | pub(crate) fn g() {} // private due to m1_2 and m1 |
| 30 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 31 | + |
| 32 | +error: pub(crate) function inside private module |
| 33 | + --> $DIR/redundant_pub_crate.rs:23:9 |
| 34 | + | |
| 35 | +LL | pub(crate) fn g() {} // private due to m1 |
| 36 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 37 | + |
| 38 | +error: pub(crate) function inside private module |
| 39 | + --> $DIR/redundant_pub_crate.rs:30:5 |
| 40 | + | |
| 41 | +LL | pub(crate) fn g() {} // already crate visible due to m2 |
| 42 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 43 | + |
| 44 | +error: pub(crate) function inside private module |
| 45 | + --> $DIR/redundant_pub_crate.rs:35:9 |
| 46 | + | |
| 47 | +LL | pub(crate) fn g() {} // private due to m2_1 |
| 48 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 49 | + |
| 50 | +error: pub(crate) module inside private module |
| 51 | + --> $DIR/redundant_pub_crate.rs:39:5 |
| 52 | + | |
| 53 | +LL | / pub(crate) mod m2_2 { |
| 54 | +LL | | // ^ already crate visible due to m2 |
| 55 | +LL | | fn f() {} |
| 56 | +LL | | pub(crate) fn g() {} // already crate visible due to m2_2 and m2 |
| 57 | +LL | | pub fn h() {} |
| 58 | +LL | | } |
| 59 | + | |_____^ |
| 60 | + |
| 61 | +error: pub(crate) function inside private module |
| 62 | + --> $DIR/redundant_pub_crate.rs:42:9 |
| 63 | + | |
| 64 | +LL | pub(crate) fn g() {} // already crate visible due to m2_2 and m2 |
| 65 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 66 | + |
| 67 | +error: pub(crate) function inside private module |
| 68 | + --> $DIR/redundant_pub_crate.rs:48:9 |
| 69 | + | |
| 70 | +LL | pub(crate) fn g() {} // already crate visible due to m2 |
| 71 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 72 | + |
| 73 | +error: pub(crate) function inside private module |
| 74 | + --> $DIR/redundant_pub_crate.rs:60:9 |
| 75 | + | |
| 76 | +LL | pub(crate) fn g() {} // private due to m3_1 |
| 77 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 78 | + |
| 79 | +error: pub(crate) function inside private module |
| 80 | + --> $DIR/redundant_pub_crate.rs:67:9 |
| 81 | + | |
| 82 | +LL | pub(crate) fn g() {} // already crate visible due to m3_2 |
| 83 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 84 | + |
| 85 | +error: pub(crate) function inside private module |
| 86 | + --> $DIR/redundant_pub_crate.rs:80:5 |
| 87 | + | |
| 88 | +LL | pub(crate) fn g() {} // private: not re-exported by `pub use m4::*` |
| 89 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 90 | + |
| 91 | +error: pub(crate) function inside private module |
| 92 | + --> $DIR/redundant_pub_crate.rs:85:9 |
| 93 | + | |
| 94 | +LL | pub(crate) fn g() {} // private due to m4_1 |
| 95 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 96 | + |
| 97 | +error: pub(crate) module inside private module |
| 98 | + --> $DIR/redundant_pub_crate.rs:89:5 |
| 99 | + | |
| 100 | +LL | / pub(crate) mod m4_2 { |
| 101 | +LL | | // ^ private: not re-exported by `pub use m4::*` |
| 102 | +LL | | fn f() {} |
| 103 | +LL | | pub(crate) fn g() {} // private due to m4_2 |
| 104 | +LL | | pub fn h() {} |
| 105 | +LL | | } |
| 106 | + | |_____^ |
| 107 | + |
| 108 | +error: pub(crate) function inside private module |
| 109 | + --> $DIR/redundant_pub_crate.rs:92:9 |
| 110 | + | |
| 111 | +LL | pub(crate) fn g() {} // private due to m4_2 |
| 112 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 113 | + |
| 114 | +error: aborting due to 16 previous errors |
| 115 | + |
0 commit comments