Skip to content

Commit 5952f01

Browse files
committed
Fix trivial typo of BoundVariableKind
1 parent 8ab4141 commit 5952f01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/rustc-dev-guide/src/ty_module/binders.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ We did not always explicitly track the set of bound vars introduced by each `Bin
4040
```
4141
Binder(
4242
fn(&'^1_0 &'^1 T/#0),
43-
&[BoundVariarbleKind::Region(...)],
43+
&[BoundVariableKind::Region(...)],
4444
)
4545
```
4646
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.

0 commit comments

Comments
 (0)