[PATCH 6.12.y 42/60] rust: error: check for config `test` in `Error::name`