Skip to content

Commit 93c4b1f

Browse files
committed
Fix additional variadic typos
1 parent fb2af77 commit 93c4b1f

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
@@ -2070,7 +2070,7 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
20702070
}
20712071
if sig.decl.c_variadic {
20722072
gate_feature_post!(&self, c_variadic, ti.span,
2073-
"C-varaidic functions are unstable");
2073+
"C-variadic functions are unstable");
20742074
}
20752075
if sig.header.constness.node == ast::Constness::Const {
20762076
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)