@0xllx0 wrote in
https://forge.sourceware.org/gcc/gcc-TEST/pulls/161#issuecomment-6100:
> The format checker CI job has the following error:
>
> ```text
> Checking GNU style for a7b06b8853461f1903d8e063b417701c38a763fb
> === ERROR type #1: braces should be on a separate line (1 error(s)) ===
> gcc/rust/backend/rust-intrinsic-handlers.cc:1146:54: return [model] (Context
> *ctx, TyTy::FnType *fntype) {
> === ERROR type #2: there should be no space before a left square bracket (1
> error(s)) ===
> gcc/rust/backend/rust-intrinsic-handlers.cc:1146:9: return [model] (Context
> *ctx, TyTy::FnType *fntype) {
> ```
>
> However, when I make the suggested change, then run the `clang-format.py`
> script, it undoes the edit. The existing pattern also follows style from
> surrounding functions.
The checker failure is related
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125434; well that is about `{`
part but the checker script was not updated to support lambdas when C++11 was
started to be used. the space is correct there.
--
https://forge.sourceware.org/gcc/gcc-TEST/pulls/161#issuecomment-6102