mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 23:03:06 +03: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.