Change the function Module::write_bitcode_to_path to accept a AsRef<Path> argument instead of &Path. This allows passing e.g. string slices instead of explicitly building the Path instance, and matches functions in std::fs.
Since &Path is AsRef<Path>, the change is backwards compatible.
Description
Change the function
Module::write_bitcode_to_path
to accept aAsRef<Path>
argument instead of&Path
. This allows passing e.g. string slices instead of explicitly building thePath
instance, and matches functions instd::fs
.Since
&Path
isAsRef<Path>
, the change is backwards compatible.How This Has Been Tested
Path
.Checklist