Skip to content

Commit

Permalink
writeback comment
Browse files Browse the repository at this point in the history
  • Loading branch information
BoxyUwU committed Jan 23, 2025
1 parent 1f5150b commit 744368d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/rustc_hir_typeck/src/writeback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,9 @@ impl<'cx, 'tcx> Visitor<'tcx> for WritebackCx<'cx, 'tcx> {
) -> Self::Result {
self.visit_id(inf_id);

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

0 comments on commit 744368d

Please sign in to comment.