mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-03 10:33:34 +00:00
Add test to ensure that external items aren't lint-checked
This commit is contained in:
parent
31d275e587
commit
bfdfc66f73
@ -1655,10 +1655,10 @@ pub struct Impl {
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum Import {
|
||||
// use source as str;
|
||||
// The bool indicates wether it imports a macro or not.
|
||||
// The bool indicates whether it imports a macro or not.
|
||||
Simple(String, ImportSource, bool),
|
||||
// use source::*;
|
||||
// The bool indicates wether this is from an import.
|
||||
// The bool indicates whether this is from an import.
|
||||
Glob(ImportSource, bool),
|
||||
}
|
||||
|
||||
|
4
src/test/rustdoc-ui/auxiliary/intra-doc-broken.rs
Normal file
4
src/test/rustdoc-ui/auxiliary/intra-doc-broken.rs
Normal file
@ -0,0 +1,4 @@
|
||||
#![crate_name = "intra_doc_broken"]
|
||||
|
||||
/// [not_found]
|
||||
pub fn foo() {}
|
8
src/test/rustdoc-ui/intra-doc-broken-reexport.rs
Normal file
8
src/test/rustdoc-ui/intra-doc-broken-reexport.rs
Normal file
@ -0,0 +1,8 @@
|
||||
// aux-build:intra-doc-broken.rs
|
||||
// check-pass
|
||||
|
||||
#![deny(broken_intra_doc_links)]
|
||||
|
||||
extern crate intra_doc_broken;
|
||||
|
||||
pub use intra_doc_broken::foo;
|
@ -1,8 +1,8 @@
|
||||
error: unresolved link to `somewhere`
|
||||
--> $DIR/pub-export-lint.rs:3:6
|
||||
|
|
||||
LL | /// [somewhere]
|
||||
| ^^^^^^^^^ the module `pub_export_lint` contains no item named `somewhere`
|
||||
LL | /// [aloha]
|
||||
| ^^^^^ no item named `aloha` in scope
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/pub-export-lint.rs:1:9
|
||||
|
Loading…
Reference in New Issue
Block a user