about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-02-22 21:19:42 +0000
committerMichael Goulet <michael@errs.io>2023-02-25 19:46:36 +0000
commita772a6fc2ad9ab0872af238fe2e641dcf379a2cd (patch)
tree1eaa346d9036e415a072914b941f1b8d697b46d0 /src
parentdcca6a375bd4eddb3deea7038ebf29d02af53b48 (diff)
downloadrust-a772a6fc2ad9ab0872af238fe2e641dcf379a2cd.tar.gz
rust-a772a6fc2ad9ab0872af238fe2e641dcf379a2cd.zip
Add ErrorGuaranteed to HIR TyKind::Err
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/clean/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs
index 648423e1289..0e8f0cfc518 100644
--- a/src/librustdoc/clean/mod.rs
+++ b/src/librustdoc/clean/mod.rs
@@ -1661,7 +1661,7 @@ pub(crate) fn clean_ty<'tcx>(ty: &hir::Ty<'tcx>, cx: &mut DocContext<'tcx>) -> T
         }
         TyKind::BareFn(barefn) => BareFunction(Box::new(clean_bare_fn_ty(barefn, cx))),
         // Rustdoc handles `TyKind::Err`s by turning them into `Type::Infer`s.
-        TyKind::Infer | TyKind::Err | TyKind::Typeof(..) => Infer,
+        TyKind::Infer | TyKind::Err(_) | TyKind::Typeof(..) => Infer,
     }
 }