Fix rustdoc ICE on bad typedef with mismatching types

This commit is contained in:
Guillaume Gomez 2023-01-02 11:47:36 +01:00
parent c5cb156caa
commit 3919b71b48

View File

@ -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(),
}
}