diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2025-08-24 20:49:32 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2025-08-24 23:09:54 +1000 |
| commit | b4e97e5d866dd43c110d337affc419d5ac482765 (patch) | |
| tree | 177c312b24211ef26785a984fbc7cc480abb0603 /compiler/rustc_codegen_llvm/src/llvm/ffi.rs | |
| parent | 455a67bd4f38b10e613fc6e2103598db10ad57fe (diff) | |
| download | rust-b4e97e5d866dd43c110d337affc419d5ac482765.tar.gz rust-b4e97e5d866dd43c110d337affc419d5ac482765.zip | |
Rename `llvm::Bool` aliases to standard const case
This avoids the need for `#![allow(non_upper_case_globals)]`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/ffi.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm/ffi.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs index 912e3d6ff24..fa2802a891f 100644 --- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs +++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs @@ -11,7 +11,6 @@ //! the need for an extra cast from `*const u8` on the Rust side. #![allow(non_camel_case_types)] -#![allow(non_upper_case_globals)] use std::fmt::{self, Debug}; use std::marker::PhantomData; @@ -42,8 +41,8 @@ pub(crate) struct Bool { value: c_int, } -pub(crate) const True: Bool = Bool::TRUE; -pub(crate) const False: Bool = Bool::FALSE; +pub(crate) const TRUE: Bool = Bool::TRUE; +pub(crate) const FALSE: Bool = Bool::FALSE; impl Bool { pub(crate) const TRUE: Self = Self { value: 1 }; |
