Skip to content

Commit 744368d

Browse files
committed
writeback comment
1 parent 1f5150b commit 744368d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/rustc_hir_typeck/src/writeback.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,9 @@ impl<'cx, 'tcx> Visitor<'tcx> for WritebackCx<'cx, 'tcx> {
371371
) -> Self::Result {
372372
self.visit_id(inf_id);
373373

374-
// Ignore cases where the inference is a const.
374+
// We don't currently write inference results of const infer vars to
375+
// the typeck results as there is not yet any part of the compiler that
376+
// needs this information.
375377
if let Some(ty) = self.fcx.node_ty_opt(inf_id) {
376378
let ty = self.resolve(ty, &inf_span);
377379
self.write_ty_to_typeck_results(inf_id, ty);

0 commit comments

Comments
 (0)