File tree Expand file tree Collapse file tree 3 files changed +27
-1
lines changed
tests/run-make/rustdoc-merge-directory-alias Expand file tree Collapse file tree 3 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ pub struct Dep4;
66//@ hasraw crates.js 'dep1'
77//@ hasraw search.index/name/*.js 'Dep1'
88//@ has dep1/index.html
9- #[ doc( alias= "dep1_missing" ) ]
9+ #[ doc( alias = "dep1_missing" ) ]
1010pub struct Dep5 ;
Original file line number Diff line number Diff line change 1+ //@ !hasraw crates.js 'dep_missing'
2+ //@ !hasraw search.index/name/*.js 'DepMissing'
3+ //@ has dep_missing/index.html
4+ pub struct DepMissing ;
Original file line number Diff line number Diff line change @@ -61,6 +61,28 @@ fn main() {
6161 . run ( ) ;
6262 output3. assert_stderr_not_contains ( "error: the compiler unexpectedly panicked. this is a bug." ) ;
6363
64+ // dep_missing is different, because --parts-out-dir is not supplied
65+ rustdoc ( ) . input ( "dep_missing.rs" ) . out_dir ( & out_dir) . run ( ) ;
66+ assert ! ( parts_out_dir. join( "dep2.json" ) . exists( ) ) ;
67+
68+ rustdoc ( )
69+ . input ( "dep1.rs" )
70+ . out_dir ( & out_dir)
71+ . arg ( "-Zunstable-options" )
72+ . arg ( format ! ( "--parts-out-dir={}" , parts_out_dir. display( ) ) )
73+ . arg ( "--merge=none" )
74+ . run ( ) ;
75+ assert ! ( parts_out_dir. join( "dep1.json" ) . exists( ) ) ;
76+
77+ let output4 = rustdoc ( )
78+ . arg ( "-Zunstable-options" )
79+ . out_dir ( & out_dir)
80+ . arg ( format ! ( "--include-parts-dir={}" , parts_out_dir. display( ) ) )
81+ . arg ( "--merge=finalize" )
82+ . run ( ) ;
83+ output4. assert_stderr_not_contains ( "error: the compiler unexpectedly panicked. this is a bug." ) ;
84+
6485 htmldocck ( ) . arg ( & out_dir) . arg ( "dep1.rs" ) . run ( ) ;
6586 htmldocck ( ) . arg ( & out_dir) . arg ( "dep2.rs" ) . run ( ) ;
87+ htmldocck ( ) . arg ( & out_dir) . arg ( "dep_missing.rs" ) . run ( ) ;
6688}
You can’t perform that action at this time.
0 commit comments