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> {
24882488 // HACK(eddyb) when substs contain e.g. inference variables,
24892489 // attempt using identity substs instead, that will succeed
24902490 // 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 .
24932493 if substs. has_local_value ( ) {
24942494 let identity_substs = InternalSubsts :: identity_for_item ( tcx, did) ;
24952495 // The `ParamEnv` needs to match the `identity_substs`.
You can’t perform that action at this time.
0 commit comments