Skip to content

Commit 3919b71

Browse files
Fix rustdoc ICE on bad typedef with mismatching types
1 parent c5cb156 commit 3919b71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/clean/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1853,7 +1853,7 @@ pub(crate) fn clean_middle_ty<'tcx>(
18531853
ty::Placeholder(..) => panic!("Placeholder"),
18541854
ty::GeneratorWitness(..) => panic!("GeneratorWitness"),
18551855
ty::Infer(..) => panic!("Infer"),
1856-
ty::Error(_) => panic!("Error"),
1856+
ty::Error(_) => rustc_errors::FatalError.raise(),
18571857
}
18581858
}
18591859

0 commit comments

Comments
 (0)