Use an error struct instead of a panic

This commit is contained in:
Alice Ryhl 2024-05-15 10:01:55 +02:00
parent 518becf5ea
commit b780fa9219
10 changed files with 47 additions and 5 deletions

View file

@ -254,3 +254,9 @@ pub struct MismatchedDataLayout<'a> {
pub(crate) struct InvalidTargetFeaturePrefix<'a> {
pub feature: &'a str,
}
#[derive(Diagnostic)]
#[diag(codegen_llvm_fixed_x18_invalid_arch)]
pub(crate) struct FixedX18InvalidArch<'a> {
pub arch: &'a str,
}