Function syntax::diagnostics::metadata::output_metadata
[−]
[src]
pub fn output_metadata(
ecx: &ExtCtxt,
prefix: &str,
name: &str,
err_map: &ErrorMap
) -> Result<(), Box<Error>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Write metadata for the errors in err_map
to disk, to a file corresponding to prefix/name
.
For our current purposes the prefix is the target architecture and the name is a crate name. If an error occurs steps will be taken to ensure that no file is created.