rustc_middle::ty::consts::kind

Trait UnevaluatedConstEvalExt

Source
pub(crate) trait UnevaluatedConstEvalExt<'tcx> {
    // Required method
    fn prepare_for_eval(
        self,
        tcx: TyCtxt<'tcx>,
        param_env: ParamEnv<'tcx>,
    ) -> (ParamEnv<'tcx>, Self);
}

Required Methods§

Source

fn prepare_for_eval( self, tcx: TyCtxt<'tcx>, param_env: ParamEnv<'tcx>, ) -> (ParamEnv<'tcx>, Self)

FIXME(RalfJung): I cannot explain what this does or why it makes sense, but not doing this hurts performance.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§