[PATCH 6.12 340/414] kbuild: rust: add rustc-min-version support function