We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 235a4c0 commit 0abea28Copy full SHA for 0abea28
tests/run-make/rustdoc-dep-info/rmake.rs
@@ -45,4 +45,15 @@ fn main() {
45
assert!(!path("precedence1.d").exists());
46
assert!(!path("precedence2.d").exists());
47
assert!(path("precedence3.d").exists());
48
+
49
+ // stdout (-) also wins if being the last.
50
+ let result = rustdoc()
51
+ .input("lib.rs")
52
+ .arg("-Zunstable-options")
53
+ .emit("dep-info=precedence1.d")
54
+ .emit("dep-info=-")
55
+ .run();
56
+ assert!(!path("precedence1.d").exists());
57
+ assert!(path("-").exists()); // `-` be treated as a file path
58
+ assert!(result.stdout().is_empty()); // Nothing emitted to stdout
59
}
0 commit comments