about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorYacin Tmimi <yacintmimi@gmail.com>2023-03-30 13:18:28 -0400
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>2023-06-19 09:58:12 -0500
commitac2ebd3a78246d2dab16aec39d2aaace618a17eb (patch)
tree707ae935bea793131bd3bb22357d1ca22dcef497 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parenta463f231f5410ceca88f3eb5dfb8a85b97a63b25 (diff)
downloadrust-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