Closed Oneirical closed 3 months ago
I am getting a failure in the CI, though I am not sure if this is due to a mistake in the test or simply due to transmute
not being supported yet.
The test seems to be OK, it just tripped up an additional warning.
Some time ago, I added new checks, which attempt to find type errors related to pointers. This requires changing the type of a pointer to be explicit(to use the CastPtr IR node).
I must have accidentally missed one of special cases of transmutation(fn ptr to raw ptr) when I updated my backend to use explicit pointer casts.
Since the pointer cast was implicit, the codegen detected a potential issue, and printed a warning to stderr. Since a warning was printed, the test is considered a "failure", even tough it works.
Part of #45.
Presenting this to narrow down if this is what you are looking for in intrinsics tests. The 3
transmute
test cases are inspired from thetransmute
official docs.A possible improvement I noticed for the test suite is the wall of:
in
compile_test.rs
. Addressing this could be the subject of another PR.