diff options
| author | Boxy <rust@boxyuwu.dev> | 2024-09-05 17:23:40 +0100 |
|---|---|---|
| committer | Boxy <rust@boxyuwu.dev> | 2024-09-05 17:24:01 +0100 |
| commit | 0091b8ab2a16aea880e2fe5d3c876f4f743640d5 (patch) | |
| tree | ca11d992224c243236c438da5db5d151479dbe16 /library/panic_unwind/src | |
| parent | a9998704d378dcb7bf399a5835dab1d22543c01f (diff) | |
| download | rust-0091b8ab2a16aea880e2fe5d3c876f4f743640d5.tar.gz rust-0091b8ab2a16aea880e2fe5d3c876f4f743640d5.zip | |
update cfgs
Diffstat (limited to 'library/panic_unwind/src')
| -rw-r--r-- | library/panic_unwind/src/seh.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/library/panic_unwind/src/seh.rs b/library/panic_unwind/src/seh.rs index 82c248c5a7b..070c11926f6 100644 --- a/library/panic_unwind/src/seh.rs +++ b/library/panic_unwind/src/seh.rs @@ -157,9 +157,6 @@ mod imp { // going to be cross-lang LTOed anyway. However, using expose is shorter and // requires less unsafe. let addr: usize = ptr.expose_provenance(); - #[cfg(bootstrap)] - let image_base = unsafe { addr_of!(__ImageBase) }.addr(); - #[cfg(not(bootstrap))] let image_base = addr_of!(__ImageBase).addr(); let offset: usize = addr - image_base; Self(offset as u32) @@ -253,9 +250,6 @@ extern "C" { // This is fine since the MSVC runtime uses string comparison on the type name // to match TypeDescriptors rather than pointer equality. static mut TYPE_DESCRIPTOR: _TypeDescriptor = _TypeDescriptor { - #[cfg(bootstrap)] - pVFTable: unsafe { addr_of!(TYPE_INFO_VTABLE) } as *const _, - #[cfg(not(bootstrap))] pVFTable: addr_of!(TYPE_INFO_VTABLE) as *const _, spare: core::ptr::null_mut(), name: TYPE_NAME, |
