Remove AmbiguousLinks::disambiguator

This commit is contained in:
Guillaume Gomez 2024-10-15 15:42:47 +02:00
parent 2b9e41c128
commit 10f2395c9e

View File

@ -302,7 +302,6 @@ pub(crate) struct LinkCollector<'a, 'tcx> {
}
pub(crate) struct AmbiguousLinks {
disambiguator: Option<Disambiguator>,
link_text: Box<str>,
diag_info: OwnedDiagnosticInfo,
resolved: Vec<(Res, Option<UrlFragment>)>,
@ -1097,7 +1096,6 @@ impl LinkCollector<'_, '_> {
if resolved.len() > 1 {
let links = AmbiguousLinks {
disambiguator,
link_text: link_text.clone(),
diag_info: diag_info.into(),
resolved,
@ -1178,7 +1176,7 @@ impl LinkCollector<'_, '_> {
res,
fragment,
path_str,
info.disambiguator,
None,
diag_info,
&info.link_text,
) {