From 792b2ea5812a06fe3d362ae36025998af66199ee Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Mon, 14 Sep 2020 22:35:41 -0700 Subject: [PATCH] Update src/doc/rustdoc/src/lints.md Co-authored-by: Joshua Nelson --- src/doc/rustdoc/src/lints.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doc/rustdoc/src/lints.md b/src/doc/rustdoc/src/lints.md index 89aeb683682ec..5424a01edb65c 100644 --- a/src/doc/rustdoc/src/lints.md +++ b/src/doc/rustdoc/src/lints.md @@ -25,11 +25,11 @@ pub fn foo() {} You'll get a warning saying: ```text -warning: `[Nonexistent]` cannot be resolved, ignoring it. +warning: unresolved link to `Nonexistent` --> test.rs:1:24 | 1 | /// I want to link to [`Nonexistent`] but it doesn't exist! - | ^^^^^^^^^^^^^ cannot be resolved, ignoring + | ^^^^^^^^^^^^^ no item named `Nonexistent` in `test` ``` It will also warn when there is an ambiguity and suggest how to disambiguate: