We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12aa62c commit a594f32Copy full SHA for a594f32
src/cargo/core/workspace.rs
@@ -1348,10 +1348,8 @@ impl<'gctx> Workspace<'gctx> {
1348
}
1349
1350
if error_count > 0 {
1351
- Err(crate::util::errors::AlreadyPrintedError::new(anyhow!(
1352
- "encountered {error_count} errors(s) while running lints"
1353
- ))
1354
- .into())
+ let plural = if error_count == 1 { "" } else { "s" };
+ bail!("encountered {error_count} error{plural} while running lints")
1355
} else {
1356
Ok(())
1357
tests/testsuite/lints/blanket_hint_mostly_unused.rs
@@ -203,6 +203,7 @@ blanket_hint_mostly_unused = "deny"
203
|
204
7 | [profile.dev.package.<pkg_name>]
205
| +++++++++++++++++++
206
+[ERROR] encountered 1 error while running lints
207
208
"#]])
209
.run();
0 commit comments