Skip to content

Commit 3f9fc39

Browse files
Unify variadic errors
1 parent 2287b4b commit 3f9fc39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_typeck/astconv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1550,7 +1550,7 @@ pub fn ast_ty_to_ty<'tcx>(this: &AstConv<'tcx>,
15501550
ast::TyParen(ref typ) => ast_ty_to_ty(this, rscope, &**typ),
15511551
ast::TyBareFn(ref bf) => {
15521552
if bf.decl.variadic && bf.abi != abi::C {
1553-
span_err!(tcx.sess, ast_ty.span, E0222,
1553+
span_err!(tcx.sess, ast_ty.span, E0045,
15541554
"variadic function must have C calling convention");
15551555
}
15561556
let bare_fn = ty_of_bare_fn(this, bf.unsafety, bf.abi, &*bf.decl);

0 commit comments

Comments
 (0)