Skip to content

Commit 742a104

Browse files
committed
Fix metadata tests
1 parent 0ac66d1 commit 742a104

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

crates/metadata/lib.rs

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

524524
fn default_cargo_args() -> Vec<String> {
525-
vec!["rustdoc".into(), "--lib".into(), "--".into()]
525+
vec![
526+
"rustdoc".into(),
527+
"--lib".into(),
528+
"-Zrustdoc-map".into(),
529+
"--".into(),
530+
]
526531
}
527532

528533
#[test]
@@ -575,6 +580,7 @@ mod test_calculations {
575580
let expected_args = vec![
576581
"rustdoc".into(),
577582
"--lib".into(),
583+
"-Zrustdoc-map".into(),
578584
"--features".into(),
579585
String::new(),
580586
"--".into(),
@@ -589,6 +595,7 @@ mod test_calculations {
589595
let expected_args = vec![
590596
String::from("rustdoc"),
591597
"--lib".into(),
598+
"-Zrustdoc-map".into(),
592599
"--features".into(),
593600
"some_feature".into(),
594601
"--".into(),
@@ -603,6 +610,7 @@ mod test_calculations {
603610
let expected_args = vec![
604611
String::from("rustdoc"),
605612
"--lib".into(),
613+
"-Zrustdoc-map".into(),
606614
"--features".into(),
607615
"feature1 feature2".into(),
608616
"--".into(),
@@ -624,6 +632,7 @@ mod test_calculations {
624632
let expected_args = vec![
625633
String::from("rustdoc"),
626634
"--lib".into(),
635+
"-Zrustdoc-map".into(),
627636
"--".into(),
628637
"-Z".into(),
629638
"unstable-options".into(),
@@ -642,6 +651,7 @@ mod test_calculations {
642651
let expected_args = vec![
643652
String::from("rustdoc"),
644653
"--lib".into(),
654+
"-Zrustdoc-map".into(),
645655
"-Z".into(),
646656
"unstable-options".into(),
647657
"--config".into(),

0 commit comments

Comments
 (0)