Fix function pointer checks on Windows#5229
Conversation
|
@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 |
|
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 }}); |
|
You seem to be pasting LLM output unfiltered to our contributors (not just here). This is not very useful in discussions, as we can ask LLMs for those responses ourselves. I'm going to temporarily restrict you from posting on github. To get reenabled, I invite you to join https://rust-lang.zulipchat.com/join/rlfvpemsaacs3pfi6kwqnqjb/ and start a thread asking for a mentor. With feedback from the mentor we can re-enable your ability to comment. Thanks for understanding Oli in the name of the mod team |
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