diff options
| author | Michael Goulet <michael@errs.io> | 2023-02-22 21:19:42 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-02-25 19:46:36 +0000 |
| commit | a772a6fc2ad9ab0872af238fe2e641dcf379a2cd (patch) | |
| tree | 1eaa346d9036e415a072914b941f1b8d697b46d0 /src | |
| parent | dcca6a375bd4eddb3deea7038ebf29d02af53b48 (diff) | |
| download | rust-a772a6fc2ad9ab0872af238fe2e641dcf379a2cd.tar.gz rust-a772a6fc2ad9ab0872af238fe2e641dcf379a2cd.zip | |
Add ErrorGuaranteed to HIR TyKind::Err
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 2 |
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, } } |
