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

Switch to debruijn indices, genericize sub/lub/glb #18837

Closed

Conversation

nikomatsakis
Copy link
Contributor

More refactoring in support of HRTB. There should be no change in functionality from these changes.

r? @pnkfelix

@nikomatsakis
Copy link
Contributor Author

@pnkfelix I realized I meant to write some more tests for specialized scenarios. I'll try to do that this morning. But make check passes and the code is right, afaik.

@nikomatsakis
Copy link
Contributor Author

OK, done writing some more tests and comments. I'm sure I could write more still but good enough for now perhaps. Did find one bug by writing unit tests so huzzah for proper engineering practices. :)

*
* Let's start with the reference type `&'b int` that is the first
* argument to the inner function. This region `'b` is assigned a De
* Bruin index of 1, meaning "the innermost binder" (in this case, a
Copy link
Contributor

Choose a reason for hiding this comment

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

Bruijn

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Bruijn

Thanks! and I was being so careful to always spell it right :)

@pnkfelix
Copy link
Member

r=me after addressing the remaining typos pointed out by @tomjakubowski (and potentially addressing my minor feedback).

@nikomatsakis
Copy link
Contributor Author

I'll incorporate the feedback into the main HRTB PR. I've fixed a bunch of random bugs that I found in that branch and it'll be hard to sort out the history if we land this.

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.

None yet

3 participants