Fix issue-506.rs by adding a void-returning stub in the runtime. #2957
Labels
A-runtime
Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows
A-testsuite
Area: The testsuite used to check the correctness of rustc
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Milestone
In preparation for removing
unsupervise()
from the runtime, I had to replace calls to it with calls to something else in all the test cases. But the test for issue #506 needs afn()
, and there are no such functions left in the runtime builtins with unsupervise gone.The hack I pulled to use
get_task_id
instead worked on all platforms but darwin, where it compiled to get the return value by reference instead of in a register.Adding a wrapper wouldn't work because the test case's intent is to call the function directly. This probably requires a snapshot.
Currently xfailed on all platforms.
The text was updated successfully, but these errors were encountered: