- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 124
 
Closed as not planned
Description
This is a rustc issue, but I thought it might help to be aware of this 🙂
[email protected]+ does not link when using thin-lto on MinGW, due to the use of #[inline] on functions containing statics. The error this causes when using 2.6+ as a dependency of rustc std can be seen here
memchr/src/arch/x86_64/memchr.rs
Lines 173 to 180 in cedf318
| #[inline(always)] | |
| pub(crate) fn memchr_raw( | |
| n1: u8, | |
| start: *const u8, | |
| end: *const u8, | |
| ) -> Option<*const u8> { | |
| // SAFETY: We provide a valid function pointer type. | |
| unsafe_ifunc!( | 
memchr/src/arch/x86_64/memchr.rs
Line 74 in cedf318
| static FN: AtomicPtr<()> = AtomicPtr::new(detect as Fn); | 
Metadata
Metadata
Assignees
Labels
No labels