Fix rustdoc ICE on bad typedef with mismatching types
This commit is contained in:
parent
c5cb156caa
commit
3919b71b48
@ -1853,7 +1853,7 @@ pub(crate) fn clean_middle_ty<'tcx>(
|
|||||||
ty::Placeholder(..) => panic!("Placeholder"),
|
ty::Placeholder(..) => panic!("Placeholder"),
|
||||||
ty::GeneratorWitness(..) => panic!("GeneratorWitness"),
|
ty::GeneratorWitness(..) => panic!("GeneratorWitness"),
|
||||||
ty::Infer(..) => panic!("Infer"),
|
ty::Infer(..) => panic!("Infer"),
|
||||||
ty::Error(_) => panic!("Error"),
|
ty::Error(_) => rustc_errors::FatalError.raise(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user