Struct rustc::mir::interpret::error::ConstEvalErr [−][src]
pub struct ConstEvalErr<'tcx> {
pub span: Span,
pub error: EvalError<'tcx>,
pub stacktrace: Vec<FrameInfo>,
}🔬 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?
Fields
span: Span
🔬 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?
error: EvalError<'tcx>
🔬 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?
stacktrace: Vec<FrameInfo>
🔬 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<'a, 'gcx, 'tcx> ConstEvalErr<'tcx>[src]
impl<'a, 'gcx, 'tcx> ConstEvalErr<'tcx>pub fn struct_error(
&self,
tcx: TyCtxtAt<'a, 'gcx, 'tcx>,
message: &str
) -> Option<DiagnosticBuilder<'tcx>>[src]
pub fn struct_error(
&self,
tcx: TyCtxtAt<'a, 'gcx, 'tcx>,
message: &str
) -> Option<DiagnosticBuilder<'tcx>>🔬 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?
pub fn report_as_error(&self, tcx: TyCtxtAt<'a, 'gcx, 'tcx>, message: &str)[src]
pub fn report_as_error(&self, tcx: TyCtxtAt<'a, 'gcx, 'tcx>, message: &str)🔬 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?
pub fn report_as_lint(
&self,
tcx: TyCtxtAt<'a, 'gcx, 'tcx>,
message: &str,
lint_root: NodeId
)[src]
pub fn report_as_lint(
&self,
tcx: TyCtxtAt<'a, 'gcx, 'tcx>,
message: &str,
lint_root: NodeId
)🔬 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?
fn struct_generic(
&self,
tcx: TyCtxtAt<'a, 'gcx, 'tcx>,
message: &str,
lint_root: Option<NodeId>
) -> Option<DiagnosticBuilder<'tcx>>[src]
fn struct_generic(
&self,
tcx: TyCtxtAt<'a, 'gcx, 'tcx>,
message: &str,
lint_root: Option<NodeId>
) -> Option<DiagnosticBuilder<'tcx>>🔬 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?
Trait Implementations
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for ConstEvalErr<'tcx>[src]
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for ConstEvalErr<'tcx>fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)[src]
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)🔬 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?
impl<'tcx> Clone for ConstEvalErr<'tcx>[src]
impl<'tcx> Clone for ConstEvalErr<'tcx>fn clone(&self) -> ConstEvalErr<'tcx>[src]
fn clone(&self) -> ConstEvalErr<'tcx>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<'tcx> Debug for ConstEvalErr<'tcx>[src]
impl<'tcx> Debug for ConstEvalErr<'tcx>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'tcx> Encodable for ConstEvalErr<'tcx>[src]
impl<'tcx> Encodable for ConstEvalErr<'tcx>fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>[src]
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::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?
impl<'tcx> Decodable for ConstEvalErr<'tcx>[src]
impl<'tcx> Decodable for ConstEvalErr<'tcx>fn decode<__D: Decoder>(d: &mut __D) -> Result<ConstEvalErr<'tcx>, __D::Error>[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<ConstEvalErr<'tcx>, __D::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?
impl<'a, 'tcx> Lift<'tcx> for ConstEvalErr<'a>[src]
impl<'a, 'tcx> Lift<'tcx> for ConstEvalErr<'a>type Lifted = ConstEvalErr<'tcx>
🔬 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?
fn lift_to_tcx<'b, 'gcx>(
&self,
tcx: TyCtxt<'b, 'gcx, 'tcx>
) -> Option<Self::Lifted>[src]
fn lift_to_tcx<'b, 'gcx>(
&self,
tcx: TyCtxt<'b, 'gcx, 'tcx>
) -> Option<Self::Lifted>🔬 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?
Auto Trait Implementations
impl<'tcx> !Send for ConstEvalErr<'tcx>
impl<'tcx> !Send for ConstEvalErr<'tcx>impl<'tcx> !Sync for ConstEvalErr<'tcx>
impl<'tcx> !Sync for ConstEvalErr<'tcx>