@@ -304,7 +304,12 @@ fn normalize_toml(
304304 lints : None ,
305305 workspace : original_toml. workspace . clone ( ) ,
306306 profile : original_toml. profile . clone ( ) ,
307- patch : None ,
307+ patch : normalize_patch (
308+ gctx,
309+ original_toml. patch . as_ref ( ) ,
310+ & workspace_root,
311+ features,
312+ ) ?,
308313 replace : original_toml. replace . clone ( ) ,
309314 _unused_keys : Default :: default ( ) ,
310315 } ;
@@ -483,13 +488,6 @@ fn normalize_toml(
483488 }
484489 normalized_toml. target = ( !normalized_target. is_empty ( ) ) . then_some ( normalized_target) ;
485490
486- normalized_toml. patch = normalize_patch (
487- gctx,
488- original_toml. patch . as_ref ( ) ,
489- & workspace_root,
490- features,
491- ) ?;
492-
493491 let normalized_lints = original_toml
494492 . lints
495493 . clone ( )
@@ -1733,14 +1731,14 @@ fn to_virtual_manifest(
17331731 root,
17341732 } ;
17351733 (
1736- replace ( & original_toml , & mut manifest_ctx) ?,
1737- patch ( & original_toml , & mut manifest_ctx) ?,
1734+ replace ( & normalized_toml , & mut manifest_ctx) ?,
1735+ patch ( & normalized_toml , & mut manifest_ctx) ?,
17381736 )
17391737 } ;
1740- if let Some ( profiles) = & original_toml . profile {
1738+ if let Some ( profiles) = & normalized_toml . profile {
17411739 validate_profiles ( profiles, gctx. cli_unstable ( ) , & features, warnings) ?;
17421740 }
1743- let resolve_behavior = original_toml
1741+ let resolve_behavior = normalized_toml
17441742 . workspace
17451743 . as_ref ( )
17461744 . and_then ( |ws| ws. resolver . as_deref ( ) )
0 commit comments