We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a7a0ac commit 6e4ef54Copy full SHA for 6e4ef54
src/librustdoc/passes/collect_intra_doc_links.rs
@@ -2005,16 +2005,16 @@ fn resolution_failure(
2005
fn anchor_failure(
2006
cx: &DocContext<'_>,
2007
item: &Item,
2008
- path_str: &str,
+ ori_link: &str,
2009
dox: &str,
2010
link_range: Range<usize>,
2011
failure: AnchorFailure,
2012
) {
2013
let msg = match failure {
2014
- AnchorFailure::MultipleAnchors => format!("`{}` contains multiple anchors", path_str),
+ AnchorFailure::MultipleAnchors => format!("`{}` contains multiple anchors", ori_link),
2015
AnchorFailure::RustdocAnchorConflict(res) => format!(
2016
"`{}` contains an anchor, but links to {kind}s are already anchored",
2017
- path_str,
+ ori_link,
2018
kind = res.descr(),
2019
),
2020
};
0 commit comments