Skip to content

Small typo and style fixes in binders.md #2396

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2025

Conversation

smanilov
Copy link
Contributor

Normally I refrain from nit picking, but this seamed worth it.

Normally I refrain from nit picking, but this seamed worth it.
@@ -43,7 +44,7 @@ Binder(
&[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.
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 reasons, in the past we would have simply allowed this to work and then ran into issues in other parts of the codebase.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this was really a mistake, but the new one works too

@Noratrieb Noratrieb merged commit bcf2bab into rust-lang:master May 20, 2025
1 check passed
@Noratrieb
Copy link
Member

thanks! btw, while we're correcting typos, it's "seemed", not "seamed" :)

@tshepang
Copy link
Member

@smanilov am happy to review your future nit picks... I appreciate making text better, even in small ways

@smanilov
Copy link
Contributor Author

thanks! btw, while we're correcting typos, it's "seemed", not "seamed" :)

ah, of course, thanks 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants