#![deny(intra_doc_resolution_failure)]

This commit is contained in:
Joshua Nelson 2020-06-10 08:56:44 -04:00
parent 432b0431ab
commit 769acbaca0
8 changed files with 12 additions and 0 deletions

View file

@ -1,5 +1,7 @@
// aux-build:additional_doc.rs
// build-aux-docs
#![deny(intra_doc_resolution_failure)]
extern crate rand;
// @has 'additional_doc/trait.Rng.html' '//a[@href="../additional_doc/trait.Rng.html"]' 'Rng'

View file

@ -1,4 +1,5 @@
#![crate_name = "rand"]
#![deny(intra_doc_resolution_failure)]
pub trait RngCore {}
/// Rng extends [`RngCore`].

View file

@ -1,4 +1,6 @@
#![crate_name = "a"]
#![deny(intra_doc_resolution_failure)]
pub struct Foo;
/// Link to [Foo]

View file

@ -1,4 +1,5 @@
#![crate_name = "a"]
#![deny(intra_doc_resolution_failure)]
pub mod bar {
pub struct Bar;

View file

@ -1,4 +1,5 @@
#![crate_name = "bar"]
#![deny(intra_doc_resolution_failure)]
pub trait Foo {
/// [`Bar`] [`Baz`]

View file

@ -1,5 +1,6 @@
// aux-build:intra-doc-basic.rs
// build-aux-docs
#![deny(intra_doc_resolution_failure)]
// from https://github.com/rust-lang/rust/issues/65983
extern crate a;

View file

@ -1,5 +1,7 @@
// aux-build:submodule-inner.rs
// build-aux-docs
#![deny(intra_doc_resolution_failure)]
extern crate a;
// @has 'submodule_inner/struct.Foo.html' '//a[@href="../a/bar/struct.Bar.html"]' 'Bar'

View file

@ -1,5 +1,7 @@
// aux-build:submodule-outer.rs
// edition:2018
#![deny(intra_doc_resolution_failure)]
extern crate bar as bar_;
// from https://github.com/rust-lang/rust/issues/60883