File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2488,8 +2488,8 @@ impl<'tcx> Const<'tcx> {
2488
2488
// HACK(eddyb) when substs contain e.g. inference variables,
2489
2489
// attempt using identity substs instead, that will succeed
2490
2490
// when the expression doesn't depend on any parameters.
2491
- // FIXME(eddyb) make `const_eval` a canonical query instead,
2492
- // that would properly handle inference variables in `substs` .
2491
+ // FIXME(eddyb, skinny121) pass `InferCtxt` into here when it's available, so that
2492
+ // we can call `infcx.const_eval_resolve` which handles inference variables .
2493
2493
if substs. has_local_value ( ) {
2494
2494
let identity_substs = InternalSubsts :: identity_for_item ( tcx, did) ;
2495
2495
// The `ParamEnv` needs to match the `identity_substs`.
You can’t perform that action at this time.
0 commit comments