diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-01-02 11:47:36 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-01-02 11:47:36 +0100 |
| commit | 3919b71b4879396791ba3d54c6e77e780a9fe9c6 (patch) | |
| tree | 12d07b04fbcad27ed1da03d9713b1e837a617809 | |
| parent | c5cb156caa27655bc8dcf135de4d026ac4b25a4a (diff) | |
| download | rust-3919b71b4879396791ba3d54c6e77e780a9fe9c6.tar.gz rust-3919b71b4879396791ba3d54c6e77e780a9fe9c6.zip | |
Fix rustdoc ICE on bad typedef with mismatching types
| -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 8f409965356..3253c3ae87c 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -1853,7 +1853,7 @@ pub(crate) fn clean_middle_ty<'tcx>( ty::Placeholder(..) => panic!("Placeholder"), ty::GeneratorWitness(..) => panic!("GeneratorWitness"), ty::Infer(..) => panic!("Infer"), - ty::Error(_) => panic!("Error"), + ty::Error(_) => rustc_errors::FatalError.raise(), } } |
