Function rustc_mir::hair::pattern::lit_to_const [−][src]
fn lit_to_const<'a, 'tcx>(
lit: &'tcx LitKind,
tcx: TyCtxt<'a, 'tcx, 'tcx>,
ty: Ty<'tcx>,
neg: bool
) -> Result<&'tcx Const<'tcx>, LitToConstError>
🔬 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?