File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -645,6 +645,10 @@ fn resolve_toml(
645
645
. map ( |mw| field_inherit_with ( mw, "badges" , || inherit ( ) ?. badges ( ) ) )
646
646
. transpose ( ) ?;
647
647
resolved_toml. badges = resolved_badges. map ( manifest:: InheritableField :: Value ) ;
648
+ } else {
649
+ for field in original_toml. requires_package ( ) {
650
+ bail ! ( "this virtual manifest specifies a `{field}` section, which is not allowed" ) ;
651
+ }
648
652
}
649
653
650
654
Ok ( resolved_toml)
@@ -1513,10 +1517,6 @@ fn to_virtual_manifest(
1513
1517
) -> CargoResult < VirtualManifest > {
1514
1518
let root = manifest_file. parent ( ) . unwrap ( ) ;
1515
1519
1516
- for field in original_toml. requires_package ( ) {
1517
- bail ! ( "this virtual manifest specifies a `{field}` section, which is not allowed" ) ;
1518
- }
1519
-
1520
1520
let mut deps = Vec :: new ( ) ;
1521
1521
let ( replace, patch) = {
1522
1522
let mut manifest_ctx = ManifestContext {
You can’t perform that action at this time.
0 commit comments