rust: remove rustpkg from test for --HEAD

Closes #26434.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>