Skip to content

Commit 1725883

Browse files
Urgausyphar
authored andcommitted
Fix metadata::test_features test assertion missing args
1 parent 4ed6b49 commit 1725883

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/metadata/lib.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ mod test_calculations {
765765
];
766766
assert_eq!(metadata.cargo_args(&[], &[]), expected_args);
767767

768-
// rustdocflags
768+
// rustcflags
769769
let metadata = Metadata {
770770
rustc_args: vec!["--cfg".into(), "x".into()],
771771
..Metadata::default()
@@ -778,6 +778,10 @@ mod test_calculations {
778778
"unstable-options".into(),
779779
"--config".into(),
780780
"build.rustflags=[\"--cfg\", \"x\"]".into(),
781+
"-Zhost-config".into(),
782+
"-Ztarget-applies-to-host".into(),
783+
"--config".into(),
784+
"host.rustflags=[\"--cfg\", \"x\"]".into(),
781785
];
782786
assert_eq!(metadata.cargo_args(&[], &[]), expected_args);
783787

0 commit comments

Comments
 (0)