diff options
| author | Josh Stone <jistone@redhat.com> | 2022-09-26 16:51:18 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2022-09-26 16:51:18 -0700 |
| commit | 35adb367798476eb49d3e77d44999b5f8ce8fa34 (patch) | |
| tree | 67789670b851446077bd696c8c8cbf0db5e5cb5f /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | 8b705839cd656d202e920efa8769cbe43a5ee269 (diff) | |
| download | rust-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
