[PATCH 6.12.y 1/2] kbuild: rust: add rustc-min-version support function