Fix invalid lint

intra_doc_resolution_failure is not a lint.
This commit is contained in:
Joshua Nelson 2020-07-16 18:25:53 -04:00
parent 8387e3825f
commit c46e0386c5
12 changed files with 12 additions and 12 deletions

View File

@ -1,7 +1,7 @@
// check-pass
// revisions: public private
// [private]compile-flags: --document-private-items
#![cfg_attr(private, deny(intra_doc_resolution_failure))]
#![cfg_attr(private, deny(intra_doc_link_resolution_failure))]
/// docs [DontDocMe]
//[public]~^ WARNING `[DontDocMe]` public documentation for `DocMe` links to a private item

View File

@ -1,6 +1,6 @@
// aux-build:additional_doc.rs
// build-aux-docs
#![deny(intra_doc_resolution_failure)]
#![deny(intra_doc_link_resolution_failure)]
extern crate my_rand;

View File

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

View File

@ -1,5 +1,5 @@
#![crate_name = "a"]
#![deny(intra_doc_resolution_failure)]
#![deny(intra_doc_link_resolution_failure)]
pub struct Foo;

View File

@ -1,5 +1,5 @@
#![crate_name = "macro_inner"]
#![deny(intra_doc_resolution_failure)]
#![deny(intra_doc_link_resolution_failure)]
pub struct Foo;

View File

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

View File

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

View File

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

View File

@ -2,7 +2,7 @@
// aux-build:macro_inner.rs
// aux-build:proc_macro.rs
// build-aux-docs
#![deny(intra_doc_resolution_failure)]
#![deny(intra_doc_link_resolution_failure)]
extern crate macro_inner;
extern crate proc_macro_inner;

View File

@ -1,6 +1,6 @@
// aux-build:submodule-inner.rs
// build-aux-docs
#![deny(intra_doc_resolution_failure)]
#![deny(intra_doc_link_resolution_failure)]
extern crate a;

View File

@ -1,6 +1,6 @@
// aux-build:submodule-outer.rs
// edition:2018
#![deny(intra_doc_resolution_failure)]
#![deny(intra_doc_link_resolution_failure)]
extern crate bar as bar_;

View File

@ -1,5 +1,5 @@
// ignore-tidy-linelength
#![deny(intra_doc_resolution_failure)]
#![deny(intra_doc_link_resolution_failure)]
pub mod char {}