Handle C-variadic arguments properly when reporting region errors
This commit is contained in:
parent
d45d205d59
commit
7dccce0706
10 changed files with 218 additions and 69 deletions
|
@ -652,7 +652,7 @@ impl<'a> AstValidator<'a> {
|
|||
self.err_handler()
|
||||
.struct_span_err(
|
||||
*span,
|
||||
"only foreign or `unsafe extern \"C\" functions may be C-variadic",
|
||||
"only foreign or `unsafe extern \"C\"` functions may be C-variadic",
|
||||
)
|
||||
.emit();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue