Check that the number of args is what we expect.
Retrieve the list of local crates that should have been passed by cargo-miri in
MIRI_LOCAL_CRATES and turn them into CrateNum
s.
Call f
for each exported symbol.
Gets the layout of a type at a path.
Gets an instance for a path.
Gets an instance for a path.
Gets an instance for a path; fails gracefully if the path does not exist.
Check whether an operation that writes to a target buffer was successful.
Accordingly select return value.
Local helper function to be used in Windows shims.