mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
test(rustdoc): depinfo cannot be emitted to stdout
This commit demonstrates that `rustdoc --emit=depinfo=-` hasn't yet supported emitting to stdout.
This commit is contained in:
@@ -45,4 +45,15 @@ fn main() {
|
||||
assert!(!path("precedence1.d").exists());
|
||||
assert!(!path("precedence2.d").exists());
|
||||
assert!(path("precedence3.d").exists());
|
||||
|
||||
// stdout (-) also wins if being the last.
|
||||
let result = rustdoc()
|
||||
.input("lib.rs")
|
||||
.arg("-Zunstable-options")
|
||||
.emit("dep-info=precedence1.d")
|
||||
.emit("dep-info=-")
|
||||
.run();
|
||||
assert!(!path("precedence1.d").exists());
|
||||
assert!(path("-").exists()); // `-` be treated as a file path
|
||||
assert!(result.stdout().is_empty()); // Nothing emitted to stdout
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user