diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2025-07-06 13:30:17 -0700 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2025-07-06 15:03:14 -0700 |
| commit | 5c8ac15dbdebb49f31307a58c0682f91c2db662f (patch) | |
| tree | 4a967a2ec53299153f9b38f0a81e27ee8de3cb35 /src/librustdoc/clean/mod.rs | |
| parent | 0a4f87a144616f35da510b82acc288aceebd5b9b (diff) | |
| download | rust-5c8ac15dbdebb49f31307a58c0682f91c2db662f.tar.gz rust-5c8ac15dbdebb49f31307a58c0682f91c2db662f.zip | |
rustdoc: migrate BareFn -> FnPtr
Diffstat (limited to 'src/librustdoc/clean/mod.rs')
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index 5cd5c434521..c2f3da18cd3 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -1834,7 +1834,7 @@ pub(crate) fn clean_ty<'tcx>(ty: &hir::Ty<'tcx>, cx: &mut DocContext<'tcx>) -> T }; DynTrait(bounds, lifetime) } - TyKind::BareFn(barefn) => BareFunction(Box::new(clean_bare_fn_ty(barefn, cx))), + TyKind::FnPtr(barefn) => BareFunction(Box::new(clean_bare_fn_ty(barefn, cx))), TyKind::UnsafeBinder(unsafe_binder_ty) => { UnsafeBinder(Box::new(clean_unsafe_binder_ty(unsafe_binder_ty, cx))) } @@ -2558,7 +2558,7 @@ fn clean_path_segment<'tcx>( } fn clean_bare_fn_ty<'tcx>( - bare_fn: &hir::BareFnTy<'tcx>, + bare_fn: &hir::FnPtrTy<'tcx>, cx: &mut DocContext<'tcx>, ) -> BareFunctionDecl { let (generic_params, decl) = enter_impl_trait(cx, |cx| { |
