@@ -16,7 +16,7 @@ error: unused import: `super::a`
1616LL | use super::a;
1717 | ^^^^^^^^
1818 |
19- help: consider adding a `#[cfg(test)]` to the containing module
19+ help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
2020 --> $DIR/unused-imports-in-test-module.rs:8:1
2121 |
2222LL | mod test {
@@ -28,7 +28,7 @@ error: unused import: `super::a`
2828LL | use super::a;
2929 | ^^^^^^^^
3030 |
31- help: consider adding a `#[cfg(test)]` to the containing module
31+ help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
3232 --> $DIR/unused-imports-in-test-module.rs:18:1
3333 |
3434LL | mod tests {
@@ -40,7 +40,7 @@ error: unused import: `super::a`
4040LL | use super::a;
4141 | ^^^^^^^^
4242 |
43- help: consider adding a `#[cfg(test)]` to the containing module
43+ help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
4444 --> $DIR/unused-imports-in-test-module.rs:28:1
4545 |
4646LL | mod test_a {
@@ -52,7 +52,7 @@ error: unused import: `super::a`
5252LL | use super::a;
5353 | ^^^^^^^^
5454 |
55- help: consider adding a `#[cfg(test)]` to the containing module
55+ help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
5656 --> $DIR/unused-imports-in-test-module.rs:38:1
5757 |
5858LL | mod a_test {
@@ -64,7 +64,7 @@ error: unused import: `super::a`
6464LL | use super::a;
6565 | ^^^^^^^^
6666 |
67- help: consider adding a `#[cfg(test)]` to the containing module
67+ help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
6868 --> $DIR/unused-imports-in-test-module.rs:48:1
6969 |
7070LL | mod tests_a {
@@ -76,7 +76,7 @@ error: unused import: `super::a`
7676LL | use super::a;
7777 | ^^^^^^^^
7878 |
79- help: consider adding a `#[cfg(test)]` to the containing module
79+ help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
8080 --> $DIR/unused-imports-in-test-module.rs:58:1
8181 |
8282LL | mod a_tests {
0 commit comments