diff options
| author | Camelid <camelidcamel@gmail.com> | 2020-12-27 11:05:40 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-27 11:05:40 -0800 |
| commit | cdad0c80ef93dc64dd9ab8ec2410ec08f60b4120 (patch) | |
| tree | 35e77ffe7a7f926c61ed67d87c50be77504e68c6 | |
| parent | 6aea014fbfc1b9bdba22bc3dcd03ab64d9785b63 (diff) | |
| download | rust-cdad0c80ef93dc64dd9ab8ec2410ec08f60b4120.tar.gz rust-cdad0c80ef93dc64dd9ab8ec2410ec08f60b4120.zip | |
Also show the displayed version of IntVar and FloatVar
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
| -rw-r--r-- | compiler/rustc_middle/src/ty/sty.rs | 4 |
1 files 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`. |
