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(
645645 . map ( |mw| field_inherit_with ( mw, "badges" , || inherit ( ) ?. badges ( ) ) )
646646 . transpose ( ) ?;
647647 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+ }
648652 }
649653
650654 Ok ( resolved_toml)
@@ -1513,10 +1517,6 @@ fn to_virtual_manifest(
15131517) -> CargoResult < VirtualManifest > {
15141518 let root = manifest_file. parent ( ) . unwrap ( ) ;
15151519
1516- for field in original_toml. requires_package ( ) {
1517- bail ! ( "this virtual manifest specifies a `{field}` section, which is not allowed" ) ;
1518- }
1519-
15201520 let mut deps = Vec :: new ( ) ;
15211521 let ( replace, patch) = {
15221522 let mut manifest_ctx = ManifestContext {
You can’t perform that action at this time.
0 commit comments