Fix function pointer checks on Windows#5229
Conversation
5fdde10 to
93e742f
Compare
|
@mansiverma897993 can you please explain what is going on here? |
|
Needs clarification and CI still fails |
|
Reminder, once the PR becomes ready for a review, use |
c1403ab to
9ab3ce9
Compare
|
Hi @tgross35, To clarify what is going on here:
The PR is now updated and ready for review. @rustbot ready |
There was a problem hiding this comment.
@mansiverma897993 it looks like you are just copying and pasting output from a bot. I am happy to help you as a contributor learn, but it is not acceptable to expect real maintainer effort if you are not willing to put in effort yourself.
There are a number of confusing and unaddressed things in this PR still, some of which I pointed out here, and CI still doesn't even pass. The code style is also very unidiomatic (as *const *const *const () then reading as an int?). Please make sure you understand the code you are submitting.
| .flag("/wd4710") // function not inlined | ||
| .flag("/wd5045") // compiler will insert Spectre mitigation | ||
| .flag("/wd4514") // unreferenced inline function removed | ||
| .flag("/wd4197") // top-level volatile in cast is ignored |
There was a problem hiding this comment.
What is this referring to?
| let target = env::var("TARGET_PLATFORM") | ||
| .or_else(|_| env::var("TARGET")) | ||
| .unwrap_or_default(); |
|
|
||
| CTEST_EXTERN uint64_t ctest_size_of__{{ item.id }}__{{ item.field.ident() }}(void) { | ||
| return sizeof((({{ item.c_ty }}){}).{{ item.c_field }}); | ||
| return sizeof((({{ item.c_ty }} *)0)->{{ item.c_field }}); |
9ab3ce9 to
729f543
Compare
729f543 to
4223034
Compare
Description
Sources
Checklist
libc-test/semverhave been updated*LASTor*MAXareincluded (see #3131)
cd libc-test && cargo test --target mytarget);especially relevant for platforms that may not be checked in CI