diff options
| author | bors <bors@rust-lang.org> | 2021-01-08 03:09:03 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-01-08 03:09:03 +0000 |
| commit | 9155a9dae522bbedd42b4a11366d8157da0614ec (patch) | |
| tree | 380cc035422ea61e9b39c6c0d0dfcdd75bf2b9d7 /src/test/rustdoc-ui | |
| parent | 92c625d0f76a6f74930b1647b0b77f53824e5a8d (diff) | |
| parent | dec3dbd36a572222ad96b9f18b39b4f916614fcd (diff) | |
| download | rust-9155a9dae522bbedd42b4a11366d8157da0614ec.tar.gz rust-9155a9dae522bbedd42b4a11366d8157da0614ec.zip | |
Auto merge of #80806 - JohnTitor:rollup-y64z7ph, r=JohnTitor
Rollup of 7 pull requests Successful merges: - #79675 (Make sure rust-call errors occur correctly for traits) - #80372 (Don't panic when an external crate can't be resolved) - #80761 (handle generic trait methods in coverage-report tests) - #80785 (rustc_ast_pretty: Remove `PrintState::insert_extra_parens`) - #80791 (Fix type name in doc example for Iter and IterMut) - #80794 (Use Option::map_or instead of `.map(..).unwrap_or(..)`) - #80799 (Get rid of custom pretty-printing in rustdoc) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'src/test/rustdoc-ui')
| -rw-r--r-- | src/test/rustdoc-ui/intra-doc/unused-extern-crate.rs | 5 | ||||
| -rw-r--r-- | src/test/rustdoc-ui/intra-doc/unused-extern-crate.stderr | 15 | ||||
| -rw-r--r-- | src/test/rustdoc-ui/range-pattern.rs | 3 |
3 files changed, 23 insertions, 0 deletions
diff --git a/src/test/rustdoc-ui/intra-doc/unused-extern-crate.rs b/src/test/rustdoc-ui/intra-doc/unused-extern-crate.rs new file mode 100644 index 00000000000..186503cf69d --- /dev/null +++ b/src/test/rustdoc-ui/intra-doc/unused-extern-crate.rs @@ -0,0 +1,5 @@ +// compile-flags: --extern zip=whatever.rlib +#![deny(broken_intra_doc_links)] +/// See [zip] crate. +//~^ ERROR unresolved +pub struct ArrayZip; diff --git a/src/test/rustdoc-ui/intra-doc/unused-extern-crate.stderr b/src/test/rustdoc-ui/intra-doc/unused-extern-crate.stderr new file mode 100644 index 00000000000..b3b57fd1318 --- /dev/null +++ b/src/test/rustdoc-ui/intra-doc/unused-extern-crate.stderr @@ -0,0 +1,15 @@ +error: unresolved link to `zip` + --> $DIR/unused-extern-crate.rs:3:10 + | +LL | /// See [zip] crate. + | ^^^ no item named `zip` in scope + | +note: the lint level is defined here + --> $DIR/unused-extern-crate.rs:2:9 + | +LL | #![deny(broken_intra_doc_links)] + | ^^^^^^^^^^^^^^^^^^^^^^ + = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` + +error: aborting due to previous error + diff --git a/src/test/rustdoc-ui/range-pattern.rs b/src/test/rustdoc-ui/range-pattern.rs new file mode 100644 index 00000000000..fd255d02fcb --- /dev/null +++ b/src/test/rustdoc-ui/range-pattern.rs @@ -0,0 +1,3 @@ +// check-pass + +fn func(0u8..=255: u8) {} |
