Use an error struct instead of a panic
This commit is contained in:
parent
518becf5ea
commit
b780fa9219
10 changed files with 47 additions and 5 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue