1
Fork 0

erase region in ParamEnvAnd and make ConstUnifyCtxt private

This commit is contained in:
b-naber 2022-03-22 16:13:28 +01:00
parent fe69a5cf0c
commit 11a70dbc8a
3 changed files with 12 additions and 13 deletions

View file

@ -41,7 +41,10 @@ impl<'tcx> TyCtxt<'tcx> {
) -> EvalToConstValueResult<'tcx> {
// Cannot resolve `Unevaluated` constants that contain inference
// variables. We reject those here since `resolve_opt_const_arg`
// would fail otherwise
// would fail otherwise.
//
// When trying to evaluate constants containing inference variables,
// use `Infcx::const_eval_resolve` instead.
if ct.substs.has_infer_types_or_consts() {
bug!("did not expect inference variables here");
}