about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2022-09-26 16:51:18 -0700
committerJosh Stone <jistone@redhat.com>2022-09-26 16:51:18 -0700
commit35adb367798476eb49d3e77d44999b5f8ce8fa34 (patch)
tree67789670b851446077bd696c8c8cbf0db5e5cb5f /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent8b705839cd656d202e920efa8769cbe43a5ee269 (diff)
downloadrust-35adb367798476eb49d3e77d44999b5f8ce8fa34.tar.gz
rust-35adb367798476eb49d3e77d44999b5f8ce8fa34.zip
Avoid LLVM-deprecated `Optional::hasValue`
LLVM 15 added `Optional::has_value`, and LLVM `main` (16) has deprecated
`hasValue`. However, its `explicit operator bool` does the same thing,
and was added long ago, so we can use that across our full LLVM range of
compatibility.
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions