mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-07-18 01:04:42 -04:00
35adb36779
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.