Skip to content

Commit

Permalink
Remove AmbiguousLinks::disambiguator
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Oct 15, 2024
1 parent 2b9e41c commit 10f2395
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/librustdoc/passes/collect_intra_doc_links.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>)>,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -1178,7 +1176,7 @@ impl LinkCollector<'_, '_> {
res,
fragment,
path_str,
info.disambiguator,
None,
diag_info,
&info.link_text,
) {
Expand Down

0 comments on commit 10f2395

Please sign in to comment.