Skip to content

Commit ec20898

Browse files
Switch to TooGeneric for checking CMSE fn signatures
Signed-off-by: FedericoBruzzone <[email protected]>
1 parent 7951b3b commit ec20898

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_hir_analysis/src/hir_ty_lowering

1 file changed

+2
-2
lines changed

compiler/rustc_hir_analysis/src/hir_ty_lowering/cmse.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ fn should_emit_generic_error<'tcx>(abi: ExternAbi, layout_err: &'tcx LayoutError
201201
use LayoutError::*;
202202

203203
match layout_err {
204-
Unknown(ty) => {
204+
TooGeneric(ty) => {
205205
match abi {
206206
ExternAbi::CCmseNonSecureCall => {
207207
// prevent double reporting of this error
@@ -211,7 +211,7 @@ fn should_emit_generic_error<'tcx>(abi: ExternAbi, layout_err: &'tcx LayoutError
211211
_ => bug!("invalid ABI: {abi}"),
212212
}
213213
}
214-
TooGeneric(..)
214+
Unknown(..)
215215
| SizeOverflow(..)
216216
| NormalizationFailure(..)
217217
| ReferencesError(..)

0 commit comments

Comments
 (0)