Function rustc_query_impl::make_query::eval_to_const_value_raw[][src]

pub fn eval_to_const_value_raw<'tcx>(
    tcx: QueryCtxt<'tcx>,
    key: eval_to_const_value_raw<'tcx>
) -> QueryStackFrame
Expand description

Evaluates const items or anonymous constants (such as enum variant explicit discriminants or array lengths) into a representation suitable for the type system and const generics.

Do not use this directly, use one of the following wrappers: tcx.const_eval_poly, tcx.const_eval_resolve, tcx.const_eval_instance, or tcx.const_eval_global_id.