From cdad0c80ef93dc64dd9ab8ec2410ec08f60b4120 Mon Sep 17 00:00:00 2001 From: Camelid Date: Sun, 27 Dec 2020 11:05:40 -0800 Subject: [PATCH] Also show the displayed version of IntVar and FloatVar Co-authored-by: Joshua Nelson --- compiler/rustc_middle/src/ty/sty.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_middle/src/ty/sty.rs b/compiler/rustc_middle/src/ty/sty.rs index 0631f2c5378..744c7a541a5 100644 --- a/compiler/rustc_middle/src/ty/sty.rs +++ b/compiler/rustc_middle/src/ty/sty.rs @@ -1472,14 +1472,14 @@ impl Atom for RegionVid { pub enum InferTy { /// A type variable. TyVar(TyVid), - /// An integral type variable. + /// An integral type variable (`{integer}`). /// /// These are created when the compiler sees an integer literal like /// `1` that could be several different types (`u8`, `i32`, `u32`, etc.). /// We don't know until it's used what type it's supposed to be, so /// we create a fresh type variable. IntVar(IntVid), - /// A floating-point type variable. + /// A floating-point type variable (`{float}`). /// /// These are created when the compiler sees an float literal like /// `1.0` that could be either an `f32` or an `f64`.