Skip to content

Commit ea18cd7

Browse files
committed
Change FIXME message to indicate plan to handle inference variables within this code path.
1 parent b8523fd commit ea18cd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/ty/sty.rs

+2-2
Original file line numberDiff line numberDiff 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`.

0 commit comments

Comments
 (0)