Skip to content

Commit b65a107

Browse files
committed
Remove unnecessary resolve_primitive call
It's already called by `resolve_path`.
1 parent 2616ab1 commit b65a107

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/librustdoc/passes/collect_intra_doc_links.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -534,10 +534,7 @@ impl<'a, 'tcx> LinkCollector<'a, 'tcx> {
534534
}
535535
})?;
536536

537-
// FIXME: are these both necessary?
538-
let ty_res = if let Some(ty_res) = resolve_primitive(&path_root, TypeNS)
539-
.or_else(|| self.resolve_path(&path_root, TypeNS, module_id))
540-
{
537+
let ty_res = if let Some(ty_res) = self.resolve_path(&path_root, TypeNS, module_id) {
541538
ty_res
542539
} else {
543540
// FIXME: this is duplicated on the end of this function.

0 commit comments

Comments
 (0)