fixed build failure due to refactor in rust pr 19273