Skip to content

Commit cdad0c8

Browse files
camelidJoshua Nelson
and
Joshua Nelson
authored
Also show the displayed version of IntVar and FloatVar
Co-authored-by: Joshua Nelson <[email protected]>
1 parent 6aea014 commit cdad0c8

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+2
-2
lines changed

compiler/rustc_middle/src/ty/sty.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1472,14 +1472,14 @@ impl Atom for RegionVid {
14721472
pub enum InferTy {
14731473
/// A type variable.
14741474
TyVar(TyVid),
1475-
/// An integral type variable.
1475+
/// An integral type variable (`{integer}`).
14761476
///
14771477
/// These are created when the compiler sees an integer literal like
14781478
/// `1` that could be several different types (`u8`, `i32`, `u32`, etc.).
14791479
/// We don't know until it's used what type it's supposed to be, so
14801480
/// we create a fresh type variable.
14811481
IntVar(IntVid),
1482-
/// A floating-point type variable.
1482+
/// A floating-point type variable (`{float}`).
14831483
///
14841484
/// These are created when the compiler sees an float literal like
14851485
/// `1.0` that could be either an `f32` or an `f64`.

0 commit comments

Comments
 (0)