Module syntax::diagnostics::metadata [] [src]

🔬 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?

This module contains utilities for outputting metadata for diagnostic errors.

Each set of errors is mapped to a metadata file by a name, which is currently always a crate name.

Structs

ErrorLocation [
Experimental
]

JSON encodable error location type with filename and line number.

ErrorMetadata [
Experimental
]

JSON encodable/decodable version of ErrorInfo.

Functions

get_metadata_dir [
Experimental
]

Get the directory where metadata for a given prefix should be stored.

output_metadata [
Experimental
]

Write metadata for the errors in err_map to disk, to a file corresponding to prefix/name.

Type Definitions

ErrorMetadataMap [
Experimental
]

Mapping from error codes to metadata that can be (de)serialized.