Struct syntax::diagnostics::metadata::ErrorLocation
[−]
[src]
pub struct ErrorLocation {
pub filename: String,
pub line: usize,
}Unstable
JSON encodable error location type with filename and line number.
Fields
filename | Unstable |
line | Unstable |
Methods
impl ErrorLocation
fn from_span(ecx: &ExtCtxt, sp: Span) -> ErrorLocation
Unstable
Create an error location from a span.