File tree 27 files changed +2
-46
lines changed
tests/rustdoc/cross-crate-info
cargo-transitive-no-index
write-docs-somewhere-else
27 files changed +2
-46
lines changed Original file line number Diff line number Diff line change 1
1
//@ build-aux-docs
2
-
3
-
4
2
pub struct Quebec ;
Original file line number Diff line number Diff line change 1
1
//@ aux-build:q.rs
2
2
//@ build-aux-docs
3
-
4
-
5
3
extern crate q;
6
4
pub trait Tango { }
Original file line number Diff line number Diff line change 1
1
//@ aux-build:t.rs
2
2
//@ build-aux-docs
3
-
4
3
//@ has q/struct.Quebec.html
5
4
//@ has s/struct.Sierra.html
6
5
//@ has t/trait.Tango.html
12
11
13
12
// We document multiple crates into the same output directory, which
14
13
// merges the cross-crate information. Everything is available.
15
-
16
14
extern crate t;
17
15
pub struct Sierra ;
18
16
impl t:: Tango for Sierra { }
Original file line number Diff line number Diff line change 2
2
//@ doc-flags:--enable-index-page
3
3
//@ doc-flags:-Zunstable-options
4
4
5
-
6
5
pub struct Quebec ;
Original file line number Diff line number Diff line change 3
3
//@ doc-flags:--enable-index-page
4
4
//@ doc-flags:-Zunstable-options
5
5
6
-
7
6
extern crate q;
8
7
pub trait Tango { }
Original file line number Diff line number Diff line change 19
19
20
20
// We document multiple crates into the same output directory, which
21
21
// merges the cross-crate information. Everything is available.
22
-
23
22
extern crate t;
24
23
pub struct Sierra ;
25
24
impl t:: Tango for Sierra { }
Original file line number Diff line number Diff line change 1
1
//@ build-aux-docs
2
-
3
-
4
2
pub trait Foxtrot { }
Original file line number Diff line number Diff line change 1
1
//@ aux-build:f.rs
2
2
//@ build-aux-docs
3
-
4
3
//@ has e/enum.Echo.html
5
4
//@ has f/trait.Foxtrot.html
6
5
//@ hasraw e/enum.Echo.html 'Foxtrot'
10
9
11
10
// document two crates in the same way that cargo does. do not provide
12
11
// --enable-index-page
13
-
14
12
extern crate f;
15
13
pub enum Echo { }
16
14
impl f:: Foxtrot for Echo { }
Original file line number Diff line number Diff line change 2
2
//@ doc-flags:--enable-index-page
3
3
//@ doc-flags:-Zunstable-options
4
4
5
-
6
5
pub trait Foxtrot { }
Original file line number Diff line number Diff line change 16
16
17
17
// document two crates in the same way that cargo does, writing them both
18
18
// into the same output directory
19
-
20
19
extern crate f;
21
20
pub enum Echo { }
22
21
impl f:: Foxtrot for Echo { }
Original file line number Diff line number Diff line change 1
1
//@ build-aux-docs
2
-
3
-
4
2
pub trait Foxtrot { }
Original file line number Diff line number Diff line change 15
15
//@ hasraw search-index.js 'Echo'
16
16
17
17
// only declare --enable-index-page to the last rustdoc invocation
18
-
19
18
extern crate f;
20
19
pub enum Echo { }
21
20
impl f:: Foxtrot for Echo { }
Original file line number Diff line number Diff line change 2
2
//@ doc-flags:--enable-index-page
3
3
//@ doc-flags:-Zunstable-options
4
4
5
-
6
5
pub struct Quebec ;
Original file line number Diff line number Diff line change 3
3
//@ doc-flags:--enable-index-page
4
4
//@ doc-flags:-Zunstable-options
5
5
6
-
7
6
extern crate s;
8
7
pub type Romeo = s:: Sierra ;
Original file line number Diff line number Diff line change 3
3
//@ doc-flags:--enable-index-page
4
4
//@ doc-flags:-Zunstable-options
5
5
6
-
7
6
extern crate t;
8
7
pub struct Sierra ;
9
8
impl t:: Tango for Sierra { }
Original file line number Diff line number Diff line change 3
3
//@ doc-flags:--enable-index-page
4
4
//@ doc-flags:-Zunstable-options
5
5
6
-
7
6
extern crate q;
8
7
pub trait Tango { }
Original file line number Diff line number Diff line change 1
- //@ aux-build:q.rs
2
1
//@ aux-build:r.rs
3
- //@ aux-build:s .rs
2
+ //@ aux-build:q .rs
4
3
//@ aux-build:t.rs
4
+ //@ aux-build:s.rs
5
5
//@ build-aux-docs
6
6
//@ doc-flags:--enable-index-page
7
7
//@ doc-flags:-Zunstable-options
28
28
//@ hasraw type.impl/s/struct.Sierra.js 'Romeo'
29
29
30
30
// document everything in the default mode
31
-
32
-
Original file line number Diff line number Diff line change 9
9
//@ hasraw search-index.js 'Quebec'
10
10
11
11
// there's nothing cross-crate going on here
12
-
13
12
pub struct Quebec ;
Original file line number Diff line number Diff line change 1
1
//@ build-aux-docs
2
-
3
2
//@ has q/struct.Quebec.html
4
3
//@ hasraw search-index.js 'Quebec'
5
4
6
5
// there's nothing cross-crate going on here
7
-
8
6
pub struct Quebec ;
Original file line number Diff line number Diff line change 1
1
//@ build-aux-docs
2
-
3
-
4
2
pub struct Quebec ;
Original file line number Diff line number Diff line change 1
1
//@ aux-build:q.rs
2
2
//@ build-aux-docs
3
-
4
-
5
3
extern crate q;
6
4
pub trait Tango { }
Original file line number Diff line number Diff line change 1
1
//@ aux-build:t.rs
2
2
//@ build-aux-docs
3
-
4
-
5
3
// simple test to see if we support building transitive crates
6
-
7
4
extern crate t;
8
5
pub struct Sierra ;
9
6
impl t:: Tango for Sierra { }
Original file line number Diff line number Diff line change 1
1
//@ build-aux-docs
2
-
3
-
4
2
pub trait Foxtrot { }
Original file line number Diff line number Diff line change 1
1
//@ aux-build:f.rs
2
2
//@ build-aux-docs
3
-
4
-
5
3
// simple test to assert that we can do a two-level aux-build
6
-
7
4
extern crate f;
8
5
pub enum Echo { }
9
6
impl f:: Foxtrot for Echo { }
Original file line number Diff line number Diff line change 7
7
8
8
// where will --scrape-examples-output-path resolve the path to be?
9
9
// should be the root output directory
10
-
11
10
pub struct Quebec ;
Original file line number Diff line number Diff line change 1
1
//@ build-aux-docs
2
2
//@ unique-doc-out-dir
3
-
4
-
5
3
pub trait Foxtrot { }
Original file line number Diff line number Diff line change 1
1
//@ aux-build:f.rs
2
2
//@ build-aux-docs
3
-
4
3
//@ has e/enum.Echo.html
5
4
//@ !has f/trait.Foxtrot.html
6
5
//@ hasraw e/enum.Echo.html 'Foxtrot'
10
9
11
10
// test the fact that our test runner will document this crate somewhere
12
11
// else
13
-
14
12
extern crate f;
15
13
pub enum Echo { }
16
14
impl f:: Foxtrot for Echo { }
You can’t perform that action at this time.
0 commit comments