]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_typeck/src/lib.rs
Rollup merge of #93976 - SUPERCILEX:separator_str, r=yaahc
[rust.git] / compiler / rustc_typeck / src / lib.rs
index 7b004fa086bf3a1bbda36fd1793663d073245f79..d415e37ff0116435c67d6a0acf30a6c5d762c9d1 100644 (file)
 fn require_c_abi_if_c_variadic(tcx: TyCtxt<'_>, decl: &hir::FnDecl<'_>, abi: Abi, span: Span) {
     match (decl.c_variadic, abi) {
         // The function has the correct calling convention, or isn't a "C-variadic" function.
-        (false, _) | (true, Abi::C { .. }) | (true, Abi::Cdecl) => {}
+        (false, _) | (true, Abi::C { .. }) | (true, Abi::Cdecl { .. }) => {}
         // The function is a "C-variadic" function with an incorrect calling convention.
         (true, _) => {
             let mut err = struct_span_err!(