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

Unstable

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.

Reexports

pub use self::Uniqueness::*;

Structs

ErrorLocation [Unstable]

JSON encodable error location type with filename and line number.

ErrorMetadata [Unstable]

JSON encodable/decodable version of ErrorInfo.

Enums

Uniqueness [Unstable]

Type for describing the uniqueness of a set of error codes, as returned by check_uniqueness.

Functions

check_uniqueness [Unstable]

Check that the errors in err_map aren't present in any metadata files in the metadata directory except the metadata file corresponding to name.

get_metadata_dir [Unstable]

Get the directory where metadata files should be stored.

output_metadata [Unstable]

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

Type Definitions

ErrorMetadataMap [Unstable]

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