diff options
| author | Yacin Tmimi <yacintmimi@gmail.com> | 2023-03-30 13:18:28 -0400 |
|---|---|---|
| committer | Caleb Cartwright <calebcartwright@users.noreply.github.com> | 2023-06-19 09:58:12 -0500 |
| commit | ac2ebd3a78246d2dab16aec39d2aaace618a17eb (patch) | |
| tree | 707ae935bea793131bd3bb22357d1ca22dcef497 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | a463f231f5410ceca88f3eb5dfb8a85b97a63b25 (diff) | |
| download | rust-ac2ebd3a78246d2dab16aec39d2aaace618a17eb.tar.gz rust-ac2ebd3a78246d2dab16aec39d2aaace618a17eb.zip | |
Prevent ICE when calling parse_attribute without an attribute
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.
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
