Fix additional variadic typos

This commit is contained in:
varkor 2019-04-18 20:36:32 +01:00
parent fb2af77763
commit 93c4b1f491
3 changed files with 3 additions and 3 deletions

View file

@ -2070,7 +2070,7 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
}
if sig.decl.c_variadic {
gate_feature_post!(&self, c_variadic, ti.span,
"C-varaidic functions are unstable");
"C-variadic functions are unstable");
}
if sig.header.constness.node == ast::Constness::Const {
gate_feature_post!(&self, const_fn, ti.span, "const fn is unstable");

View file

@ -1,4 +1,4 @@
#![crate_type="lib"]
pub unsafe extern "C" fn test(_: i32, ap: ...) { }
//~^ C-varaidic functions are unstable
//~^ C-variadic functions are unstable

View file

@ -1,4 +1,4 @@
error[E0658]: C-varaidic functions are unstable
error[E0658]: C-variadic functions are unstable
--> $DIR/feature-gate-c_variadic.rs:3:1
|
LL | pub unsafe extern "C" fn test(_: i32, ap: ...) { }