diff options
| author | bors <bors@rust-lang.org> | 2023-12-30 18:39:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-30 18:39:57 +0000 |
| commit | 5a345b325b59370171d9a00c8f575fb177ead767 (patch) | |
| tree | 7b5b6418b0570e87bfc5afc7536f2a95d7037ace /compiler/rustc_codegen_llvm/src | |
| parent | a2541e861e74cd1fe6454df02c843ad1ec592589 (diff) | |
| parent | ffafcd8819deb78ad85dd4968cf5da531d8f436d (diff) | |
| download | rust-5a345b325b59370171d9a00c8f575fb177ead767.tar.gz rust-5a345b325b59370171d9a00c8f575fb177ead767.zip | |
Auto merge of #119446 - Nilstrieb:bitflags2.0-hell, r=compiler-errors
Update to bitflags 2 in the compiler This involves lots of breaking changes. There are two big changes that force changes. The first is that the bitflag types now don't automatically implement normal derive traits, so we need to derive them manually. Additionally, bitflags now have a hidden inner type by default, which breaks our custom derives. The bitflags docs recommend using the impl form in these cases, which I did. r? compiler
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm/ffi.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs index 81702baa8c0..aefca6b34f5 100644 --- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs +++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs @@ -722,7 +722,7 @@ pub mod debuginfo { // These values **must** match with LLVMRustDIFlags!! bitflags! { #[repr(transparent)] - #[derive(Default)] + #[derive(Clone, Copy, Default)] pub struct DIFlags: u32 { const FlagZero = 0; const FlagPrivate = 1; @@ -751,7 +751,7 @@ pub mod debuginfo { // These values **must** match with LLVMRustDISPFlags!! bitflags! { #[repr(transparent)] - #[derive(Default)] + #[derive(Clone, Copy, Default)] pub struct DISPFlags: u32 { const SPFlagZero = 0; const SPFlagVirtual = 1; |
