rust: --HEAD uses incoming branch, not master

Closes #20409.

Signed-off-by: Samuel John <github@SamuelJohn.de>