Skip to content

Commit af6a520

Browse files
committed
Fix metadata tests
1 parent 0ac66d1 commit af6a520

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

crates/metadata/lib.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ mod test_calculations {
522522
use super::*;
523523

524524
fn default_cargo_args() -> Vec<String> {
525-
vec!["rustdoc".into(), "--lib".into(), "--".into()]
525+
vec!["rustdoc".into(), "--lib".into(), "-Zrustdoc-map".into(), "--".into()]
526526
}
527527

528528
#[test]
@@ -575,6 +575,7 @@ mod test_calculations {
575575
let expected_args = vec![
576576
"rustdoc".into(),
577577
"--lib".into(),
578+
"-Zrustdoc-map".into(),
578579
"--features".into(),
579580
String::new(),
580581
"--".into(),
@@ -589,6 +590,7 @@ mod test_calculations {
589590
let expected_args = vec![
590591
String::from("rustdoc"),
591592
"--lib".into(),
593+
"-Zrustdoc-map".into(),
592594
"--features".into(),
593595
"some_feature".into(),
594596
"--".into(),
@@ -603,6 +605,7 @@ mod test_calculations {
603605
let expected_args = vec![
604606
String::from("rustdoc"),
605607
"--lib".into(),
608+
"-Zrustdoc-map".into(),
606609
"--features".into(),
607610
"feature1 feature2".into(),
608611
"--".into(),
@@ -624,6 +627,7 @@ mod test_calculations {
624627
let expected_args = vec![
625628
String::from("rustdoc"),
626629
"--lib".into(),
630+
"-Zrustdoc-map".into(),
627631
"--".into(),
628632
"-Z".into(),
629633
"unstable-options".into(),
@@ -642,6 +646,7 @@ mod test_calculations {
642646
let expected_args = vec![
643647
String::from("rustdoc"),
644648
"--lib".into(),
649+
"-Zrustdoc-map".into(),
645650
"-Z".into(),
646651
"unstable-options".into(),
647652
"--config".into(),

0 commit comments

Comments
 (0)