Skip to content

Commit 3dbe05f

Browse files
committed
Fix additional variadic typos
1 parent edce367 commit 3dbe05f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/libsyntax/feature_gate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2069,7 +2069,7 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
20692069
}
20702070
if sig.decl.c_variadic {
20712071
gate_feature_post!(&self, c_variadic, ti.span,
2072-
"C-varaidic functions are unstable");
2072+
"C-variadic functions are unstable");
20732073
}
20742074
if sig.header.constness.node == ast::Constness::Const {
20752075
gate_feature_post!(&self, const_fn, ti.span, "const fn is unstable");
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#![crate_type="lib"]
22

33
pub unsafe extern "C" fn test(_: i32, ap: ...) { }
4-
//~^ C-varaidic functions are unstable
4+
//~^ C-variadic functions are unstable

src/test/ui/feature-gate/feature-gate-c_variadic.stderr

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

0 commit comments

Comments
 (0)