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 ffc2923 commit e97b36aCopy full SHA for e97b36a
src/cargo/util/toml/mod.rs
@@ -78,7 +78,7 @@ fn do_read_manifest(
78
let (mut manifest, paths) =
79
TomlManifest::to_real_manifest(&manifest, source_id, package_root, config)?;
80
add_unused(manifest.warnings_mut());
81
- if !manifest.targets().iter().any(|t| !t.is_custom_build()) {
+ if manifest.targets().iter().all(|t| t.is_custom_build()) {
82
bail!(
83
"no targets specified in the manifest\n \
84
either src/lib.rs, src/main.rs, a [lib] section, or \
0 commit comments