writeback comment
This commit is contained in:
parent
1f5150b11b
commit
744368d83d
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue