Skip to content

Commit

Permalink
Add missing args to a assertion in the test_features test
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau committed Jan 23, 2024
1 parent 4b3a59a commit d5a652f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/metadata/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ mod test_calculations {
];
assert_eq!(metadata.cargo_args(&[], &[]), expected_args);

// rustdocflags
// rustcflags
let metadata = Metadata {
rustc_args: vec!["--cfg".into(), "x".into()],
..Metadata::default()
Expand All @@ -778,6 +778,10 @@ mod test_calculations {
"unstable-options".into(),
"--config".into(),
"build.rustflags=[\"--cfg\", \"x\"]".into(),
"-Zhost-config".into(),
"-Ztarget-applies-to-host".into(),
"--config".into(),
"host.rustflags=[\"--cfg\", \"x\"]".into(),
];
assert_eq!(metadata.cargo_args(&[], &[]), expected_args);

Expand Down

0 comments on commit d5a652f

Please sign in to comment.