Skip to content

Commit

Permalink
Rollup merge of #98856 - GuillaumeGomez:rustdoc-test-rm-fixme, r=Dyla…
Browse files Browse the repository at this point in the history
…n-DPC

Remove FIXME from rustdoc intra-doc test

Removed the FIXME.

For the `extern crate`, even if `pub` exported, its documentation wasn't rendered so there is no point in keeping it.

r? ``@notriddle``
  • Loading branch information
Dylan-DPC committed Jul 5, 2022
2 parents c2613a5 + ce9e834 commit 6a61e18
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/test/rustdoc/intra-doc/pub-use.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,11 @@
extern crate inner;

/// [mod@std::env] [g]

// FIXME: This can't be tested because rustdoc doesn't show documentation on pub re-exports.
// Until then, comment out the `htmldocck` test.
// This test still does something; namely check that no incorrect errors are emitted when
// documenting the re-export.

// @has outer/index.html
// @ has - '//a[@href="{{channel}}/std/env/fn.var.html"]' "std::env"
// @ has - '//a[@href="fn.f.html"]' "g"
// @has - '//a[@href="{{channel}}/std/env/index.html"]' "std::env"
// @has - '//a[@href="fn.f.html"]' "g"
pub use f as g;

// FIXME: same as above
/// [std::env]
extern crate self as _;

// Make sure the documentation is actually correct by documenting an inlined re-export
/// [mod@std::env]
// @has outer/fn.f.html
Expand Down

0 comments on commit 6a61e18

Please sign in to comment.