Skip to content

Commit 5c8ac15

Browse files
rustdoc: migrate BareFn -> FnPtr
1 parent 0a4f87a commit 5c8ac15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/clean/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1834,7 +1834,7 @@ pub(crate) fn clean_ty<'tcx>(ty: &hir::Ty<'tcx>, cx: &mut DocContext<'tcx>) -> T
18341834
};
18351835
DynTrait(bounds, lifetime)
18361836
}
1837-
TyKind::BareFn(barefn) => BareFunction(Box::new(clean_bare_fn_ty(barefn, cx))),
1837+
TyKind::FnPtr(barefn) => BareFunction(Box::new(clean_bare_fn_ty(barefn, cx))),
18381838
TyKind::UnsafeBinder(unsafe_binder_ty) => {
18391839
UnsafeBinder(Box::new(clean_unsafe_binder_ty(unsafe_binder_ty, cx)))
18401840
}
@@ -2558,7 +2558,7 @@ fn clean_path_segment<'tcx>(
25582558
}
25592559

25602560
fn clean_bare_fn_ty<'tcx>(
2561-
bare_fn: &hir::BareFnTy<'tcx>,
2561+
bare_fn: &hir::FnPtrTy<'tcx>,
25622562
cx: &mut DocContext<'tcx>,
25632563
) -> BareFunctionDecl {
25642564
let (generic_params, decl) = enter_impl_trait(cx, |cx| {

0 commit comments

Comments
 (0)