about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorYuki Okushi <yuki.okushi@huawei.com>2021-06-22 04:50:12 +0900
committerGitHub <noreply@github.com>2021-06-21 21:50:12 +0200
commite5ce66c9f0b005f39748c17be2afdfd2dec2718b (patch)
tree4d3c0b008a482073ef0137cad3abdc7ab9708d74 /src/doc
parent1cb31172c1102736012183601e94a01e6e197f4c (diff)
downloadrust-e5ce66c9f0b005f39748c17be2afdfd2dec2718b.tar.gz
rust-e5ce66c9f0b005f39748c17be2afdfd2dec2718b.zip
Update "Inference variables" section (#1145)
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/rustc-dev-guide/src/type-inference.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/doc/rustc-dev-guide/src/type-inference.md b/src/doc/rustc-dev-guide/src/type-inference.md
index 71c2b08b190..4be9211eeed 100644
--- a/src/doc/rustc-dev-guide/src/type-inference.md
+++ b/src/doc/rustc-dev-guide/src/type-inference.md
@@ -71,8 +71,8 @@ inference works, or perhaps this blog post on
 
 [Unification in the Chalk project]: http://smallcultfollowing.com/babysteps/blog/2017/03/25/unification-in-chalk-part-1/
 
-All told, the inference context stores four kinds of inference variables
-(as of <!-- date: 2018-01 --> January 2018):
+All told, the inference context stores five kinds of inference variables
+(as of <!-- date: 2021-06 --> June 2021):
 
 - Type variables, which come in three varieties:
   - General type variables (the most common). These can be unified with any
@@ -82,6 +82,7 @@ All told, the inference context stores four kinds of inference variables
   - Float type variables, which can only be unified with a float type, and
     arise from a float literal expression like `22.0`.
 - Region variables, which represent lifetimes, and arise all over the place.
+- Const variables, which represent constants.
 
 All the type variables work in much the same way: you can create a new
 type variable, and what you get is `Ty<'tcx>` representing an