Also show the displayed version of IntVar and FloatVar

Co-authored-by: Joshua Nelson <joshua@yottadb.com>
This commit is contained in:
Camelid 2020-12-27 11:05:40 -08:00 committed by GitHub
parent 6aea014fbf
commit cdad0c80ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`.