From: hriztam Date: Thu, 26 Feb 2026 13:19:20 +0000 (+0530) Subject: gccrs: rust: Explicitly instantiate FFIVec for C-linkage X-Git-Tag: basepoints/gcc-17~185 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cbbe85776d7572d8dc116a17b73c161fb3af6779;p=thirdparty%2Fgcc.git gccrs: rust: Explicitly instantiate FFIVec for C-linkage gcc/rust/ChangeLog: * ast/rust-fmt.h: Explicitly instantiate FFIVec. Signed-off-by: Hritam Shrivastava --- diff --git a/gcc/rust/ast/rust-fmt.h b/gcc/rust/ast/rust-fmt.h index 4577665dc93..a7741981f53 100644 --- a/gcc/rust/ast/rust-fmt.h +++ b/gcc/rust/ast/rust-fmt.h @@ -398,6 +398,10 @@ enum ParseMode InlineAsm, }; +// Required to avoid Clang warning about returning an incomplete FFIVec +// from extern "C" functions. +template class FFIVec; + extern "C" { FFIVec collect_pieces (RustHamster input, bool append_newline,