mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 10:05:06 +03:00
ac2ebd3a78
Fixes 5729 `parse_attribute` will panic if the first token is not a `#`. To prevent this we return early instead of trying to parse an invalid attribute.