[PATCH 6.12.y] rust: workaround `rustdoc` target modifiers bug