File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
tests/run-make/rustdoc-dep-info Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -33,4 +33,17 @@ fn main() {
33
33
// Now we check that we can provide a file name to the `dep-info` argument.
34
34
rustdoc ( ) . input ( "lib.rs" ) . arg ( "-Zunstable-options" ) . emit ( "dep-info=bla.d" ) . run ( ) ;
35
35
assert ! ( path( "bla.d" ) . exists( ) ) ;
36
+
37
+ // The last emit-type wins. The same behavior as rustc.
38
+ // TODO: this shows the wrong behavior as a MRE, which will be fixed in the next commit
39
+ rustdoc ( )
40
+ . input ( "lib.rs" )
41
+ . arg ( "-Zunstable-options" )
42
+ . emit ( "dep-info=precedence1.d" )
43
+ . emit ( "dep-info=precedence2.d" )
44
+ . emit ( "dep-info=precedence3.d" )
45
+ . run ( ) ;
46
+ assert ! ( path( "precedence1.d" ) . exists( ) ) ;
47
+ assert ! ( !path( "precedence2.d" ) . exists( ) ) ;
48
+ assert ! ( !path( "precedence3.d" ) . exists( ) ) ;
36
49
}
You can’t perform that action at this time.
0 commit comments