reformatted rustdoc/cross-crate-info, fixing trailing newline issue

This commit is contained in:
EtomicBomb 2024-07-24 22:35:14 +00:00
parent d8211def61
commit f6f0ef46f5
27 changed files with 2 additions and 46 deletions

View File

@ -1,4 +1,2 @@
//@ build-aux-docs
pub struct Quebec;

View File

@ -1,6 +1,4 @@
//@ aux-build:q.rs
//@ build-aux-docs
extern crate q;
pub trait Tango {}

View File

@ -1,6 +1,5 @@
//@ aux-build:t.rs
//@ build-aux-docs
//@ has q/struct.Quebec.html
//@ has s/struct.Sierra.html
//@ has t/trait.Tango.html
@ -12,7 +11,6 @@
// We document multiple crates into the same output directory, which
// merges the cross-crate information. Everything is available.
extern crate t;
pub struct Sierra;
impl t::Tango for Sierra {}

View File

@ -2,5 +2,4 @@
//@ doc-flags:--enable-index-page
//@ doc-flags:-Zunstable-options
pub struct Quebec;

View File

@ -3,6 +3,5 @@
//@ doc-flags:--enable-index-page
//@ doc-flags:-Zunstable-options
extern crate q;
pub trait Tango {}

View File

@ -19,7 +19,6 @@
// We document multiple crates into the same output directory, which
// merges the cross-crate information. Everything is available.
extern crate t;
pub struct Sierra;
impl t::Tango for Sierra {}

View File

@ -1,4 +1,2 @@
//@ build-aux-docs
pub trait Foxtrot {}

View File

@ -1,6 +1,5 @@
//@ aux-build:f.rs
//@ build-aux-docs
//@ has e/enum.Echo.html
//@ has f/trait.Foxtrot.html
//@ hasraw e/enum.Echo.html 'Foxtrot'
@ -10,7 +9,6 @@
// document two crates in the same way that cargo does. do not provide
// --enable-index-page
extern crate f;
pub enum Echo {}
impl f::Foxtrot for Echo {}

View File

@ -2,5 +2,4 @@
//@ doc-flags:--enable-index-page
//@ doc-flags:-Zunstable-options
pub trait Foxtrot {}

View File

@ -16,7 +16,6 @@
// document two crates in the same way that cargo does, writing them both
// into the same output directory
extern crate f;
pub enum Echo {}
impl f::Foxtrot for Echo {}

View File

@ -1,4 +1,2 @@
//@ build-aux-docs
pub trait Foxtrot {}

View File

@ -15,7 +15,6 @@
//@ hasraw search-index.js 'Echo'
// only declare --enable-index-page to the last rustdoc invocation
extern crate f;
pub enum Echo {}
impl f::Foxtrot for Echo {}

View File

@ -2,5 +2,4 @@
//@ doc-flags:--enable-index-page
//@ doc-flags:-Zunstable-options
pub struct Quebec;

View File

@ -3,6 +3,5 @@
//@ doc-flags:--enable-index-page
//@ doc-flags:-Zunstable-options
extern crate s;
pub type Romeo = s::Sierra;

View File

@ -3,7 +3,6 @@
//@ doc-flags:--enable-index-page
//@ doc-flags:-Zunstable-options
extern crate t;
pub struct Sierra;
impl t::Tango for Sierra {}

View File

@ -3,6 +3,5 @@
//@ doc-flags:--enable-index-page
//@ doc-flags:-Zunstable-options
extern crate q;
pub trait Tango {}

View File

@ -1,7 +1,7 @@
//@ aux-build:q.rs
//@ aux-build:r.rs
//@ aux-build:s.rs
//@ aux-build:q.rs
//@ aux-build:t.rs
//@ aux-build:s.rs
//@ build-aux-docs
//@ doc-flags:--enable-index-page
//@ doc-flags:-Zunstable-options
@ -28,5 +28,3 @@
//@ hasraw type.impl/s/struct.Sierra.js 'Romeo'
// document everything in the default mode

View File

@ -9,5 +9,4 @@
//@ hasraw search-index.js 'Quebec'
// there's nothing cross-crate going on here
pub struct Quebec;

View File

@ -1,8 +1,6 @@
//@ build-aux-docs
//@ has q/struct.Quebec.html
//@ hasraw search-index.js 'Quebec'
// there's nothing cross-crate going on here
pub struct Quebec;

View File

@ -1,4 +1,2 @@
//@ build-aux-docs
pub struct Quebec;

View File

@ -1,6 +1,4 @@
//@ aux-build:q.rs
//@ build-aux-docs
extern crate q;
pub trait Tango {}

View File

@ -1,9 +1,6 @@
//@ aux-build:t.rs
//@ build-aux-docs
// simple test to see if we support building transitive crates
extern crate t;
pub struct Sierra;
impl t::Tango for Sierra {}

View File

@ -1,4 +1,2 @@
//@ build-aux-docs
pub trait Foxtrot {}

View File

@ -1,9 +1,6 @@
//@ aux-build:f.rs
//@ build-aux-docs
// simple test to assert that we can do a two-level aux-build
extern crate f;
pub enum Echo {}
impl f::Foxtrot for Echo {}

View File

@ -7,5 +7,4 @@
// where will --scrape-examples-output-path resolve the path to be?
// should be the root output directory
pub struct Quebec;

View File

@ -1,5 +1,3 @@
//@ build-aux-docs
//@ unique-doc-out-dir
pub trait Foxtrot {}

View File

@ -1,6 +1,5 @@
//@ aux-build:f.rs
//@ build-aux-docs
//@ has e/enum.Echo.html
//@ !has f/trait.Foxtrot.html
//@ hasraw e/enum.Echo.html 'Foxtrot'
@ -10,7 +9,6 @@
// test the fact that our test runner will document this crate somewhere
// else
extern crate f;
pub enum Echo {}
impl f::Foxtrot for Echo {}