pub(crate) trait UnevaluatedConstEvalExt<'tcx> {
// Required method
fn prepare_for_eval(
self,
tcx: TyCtxt<'tcx>,
param_env: ParamEnv<'tcx>,
) -> (ParamEnv<'tcx>, Self);
}
Required Methods§
Sourcefn prepare_for_eval(
self,
tcx: TyCtxt<'tcx>,
param_env: ParamEnv<'tcx>,
) -> (ParamEnv<'tcx>, Self)
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.