1
Fork 0

Spellchecking compiler code

Address some spelling mistakes in strings, private function names, and function params.
This commit is contained in:
Yuri Astrakhan 2022-03-30 01:42:10 -04:00
parent 600ec28483
commit a9cc3f6564
8 changed files with 10 additions and 10 deletions

View file

@ -624,7 +624,7 @@ impl<'a> AstValidator<'a> {
/// Reject C-varadic type unless the function is foreign,
/// or free and `unsafe extern "C"` semantically.
fn check_c_varadic_type(&self, fk: FnKind<'a>) {
fn check_c_variadic_type(&self, fk: FnKind<'a>) {
match (fk.ctxt(), fk.header()) {
(Some(FnCtxt::Foreign), _) => return,
(Some(FnCtxt::Free), Some(header)) => match header.ext {
@ -1504,7 +1504,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
};
self.check_fn_decl(fk.decl(), self_semantic);
self.check_c_varadic_type(fk);
self.check_c_variadic_type(fk);
// Functions cannot both be `const async`
if let Some(FnHeader {