Signed-off-by: hi-rustin <rustin.liu@gmail.com>
if let Some(package) = toml.get("package").or_else(|| toml.get("project")) {
if let Some(feats) = package.get("cargo-features") {
bail!(
- "cargo-features = {} was found in the wrong location, it \
- should be set at the top of Cargo.toml before any tables",
+ "cargo-features = {} was found in the wrong location: it \
+ should be set at the top of Cargo.toml before any sections",
toml::to_string(feats).unwrap()
);
}
error: failed to parse manifest at [..]
Caused by:
- cargo-features = [\"test-dummy-unstable\"] was found in the wrong location, it \
- should be set at the top of Cargo.toml before any tables
+ cargo-features = [\"test-dummy-unstable\"] was found in the wrong location: it \
+ should be set at the top of Cargo.toml before any sections
",
)
.run();