Struct syntax::diagnostics::metadata::ErrorLocation
[−]
[src]
pub struct ErrorLocation {
pub filename: FileName,
pub line: usize,
}🔬 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?
JSON encodable error location type with filename and line number.
Fields
filename: FileName
🔬 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?
line: usize
🔬 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?
Methods
impl ErrorLocation[src]
pub fn from_span(ecx: &ExtCtxt, sp: Span) -> ErrorLocation[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?
Create an error location from a span.
Trait Implementations
impl PartialEq for ErrorLocation[src]
fn eq(&self, __arg_0: &ErrorLocation) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ErrorLocation) -> bool[src]
This method tests for !=.
impl Decodable for ErrorLocation[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<ErrorLocation, __D::Error>[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?