Closes #22798 This fixes that we didn't detect the Rust runnable when there was a comment after the `#[test]` attribute.  Release Notes: - Fixed Rust runnable not detected when comment is after `#[test]` attribute. --------- Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>