about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-03-28 20:10:31 +0100
committerSamuel Tardieu <sam@rfc1149.net>2025-03-28 21:04:21 +0100
commit5952f01712521d6700a58eeb0ad8b25db7c8fd68 (patch)
tree0f6359854fb1b54f4c24b0d3960c601dacb1838e /src/doc/rustc-dev-guide
parent8ab414133f561e930e77ac2a33637d55f93c33c9 (diff)
downloadrust-5952f01712521d6700a58eeb0ad8b25db7c8fd68.tar.gz
rust-5952f01712521d6700a58eeb0ad8b25db7c8fd68.zip
Fix trivial typo of `BoundVariableKind`
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/ty_module/binders.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/rustc-dev-guide/src/ty_module/binders.md b/src/doc/rustc-dev-guide/src/ty_module/binders.md
index defb7cde514..71157eca9b1 100644
--- a/src/doc/rustc-dev-guide/src/ty_module/binders.md
+++ b/src/doc/rustc-dev-guide/src/ty_module/binders.md
@@ -40,7 +40,7 @@ We did not always explicitly track the set of bound vars introduced by each `Bin
 ```
 Binder(
     fn(&'^1_0 &'^1 T/#0),
-    &[BoundVariarbleKind::Region(...)],
+    &[BoundVariableKind::Region(...)],
 )
 ```
 This would cause all kinds of issues as the region `'^1_0` refers to a binder at a higher level than the outermost binder i.e. it is an escaping bound var. The `'^1` region (also writeable as `'^0_1`) is also ill formed as the binder it refers to does not introduce a second parameter. Modern day rustc will ICE when constructing this binder due to both of those regions, in the past we would have simply allowed this to work and then ran into issues in other parts of the codebase.