mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
Fix invalid lint
intra_doc_resolution_failure is not a lint.
This commit is contained in:
parent
8387e3825f
commit
c46e0386c5
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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`].
|
||||
|
@ -1,5 +1,5 @@
|
||||
#![crate_name = "a"]
|
||||
#![deny(intra_doc_resolution_failure)]
|
||||
#![deny(intra_doc_link_resolution_failure)]
|
||||
|
||||
pub struct Foo;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#![crate_name = "macro_inner"]
|
||||
#![deny(intra_doc_resolution_failure)]
|
||||
#![deny(intra_doc_link_resolution_failure)]
|
||||
|
||||
pub struct Foo;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#![crate_name = "a"]
|
||||
#![deny(intra_doc_resolution_failure)]
|
||||
#![deny(intra_doc_link_resolution_failure)]
|
||||
|
||||
pub mod bar {
|
||||
pub struct Bar;
|
||||
|
@ -1,5 +1,5 @@
|
||||
#![crate_name = "bar"]
|
||||
#![deny(intra_doc_resolution_failure)]
|
||||
#![deny(intra_doc_link_resolution_failure)]
|
||||
|
||||
pub trait Foo {
|
||||
/// [`Bar`] [`Baz`]
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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_;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
// ignore-tidy-linelength
|
||||
#![deny(intra_doc_resolution_failure)]
|
||||
#![deny(intra_doc_link_resolution_failure)]
|
||||
|
||||
pub mod char {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user