Skip to content
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

Shift bound variables correctly when using assoc type shorthand #4952

Merged
merged 1 commit into from
Jun 19, 2020

Conversation

flodiebold
Copy link
Member

Fixes #4885.
Fixes #4800.

@Speedy37
Copy link
Contributor

I'm gonna pull that in right now :)

@matklad
Copy link
Member

matklad commented Jun 19, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Jun 19, 2020

@bors bors bot merged commit 0f7961d into rust-lang:master Jun 19, 2020
bors added a commit that referenced this pull request Dec 10, 2022
…diebold

fix: only shift `BoundVar`s that come from outside lowering context

Fixes #13734

There are some free functions `TyLoweringContext` methods call, which do not know anything about current binders in scope. We need to shift in the `BoundVar`s in substitutions that we get from them (#4952), but not those we get from `TyLoweringContext` methods.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants