[PATCH 6.12 053/269] rust: error: check for config `test` in `Error::name`