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

Remove ty_bot from the type system #17603

Closed
wants to merge 3 commits into from
Closed

Remove ty_bot from the type system #17603

wants to merge 3 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Sep 28, 2014

We now instead use a fresh variable for expressions that diverge.

Closes #14973.
Closes #13847.

[Work in progress]

cc @nikomatsakis

@rust-highfive
Copy link
Collaborator

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!

@nikomatsakis
Copy link
Contributor

@jakub- assigning myself, sorry for delay, it's been a busy week or so.

@nikomatsakis nikomatsakis self-assigned this Oct 8, 2014
@ghost
Copy link
Author

ghost commented Oct 11, 2014

@nikomatsakis Thanks. This PR isn't compiling yet, AFAIR, due to some unconstrained variables in rustc but the general direction is mostly set. I will rebase soon.

@alexcrichton
Copy link
Member

ping @jakub-, any updates here?

@ghost
Copy link
Author

ghost commented Oct 24, 2014

@alexcrichton @nikomatsakis This now bootstraps so I'd appreciate your review.

@ghost
Copy link
Author

ghost commented Oct 25, 2014

This is green now.

Jakub Bukaj added 3 commits October 28, 2014 17:54
bors added a commit that referenced this pull request Oct 28, 2014
We now instead use a fresh variable for expressions that diverge.

Closes #14973.
Closes #13847.

[Work in progress]

cc @nikomatsakis
@bors bors closed this Oct 29, 2014
@ghost ghost deleted the ty_bot branch October 29, 2014 17:15
@nikomatsakis
Copy link
Contributor

Nice work.

@ghost
Copy link
Author

ghost commented Oct 30, 2014

@nikomatsakis Cheers!

edwardw added a commit to edwardw/rust that referenced this pull request Feb 6, 2015
PR rust-lang#17603 introduced bottom type fallback but did it a bit too
eagerly. This patch makes the fallback lazy so that `typeck` can run
its cause and detect as many type errors as possible with regard to
diverging types.

Closes rust-lang#21878
lnicola pushed a commit to lnicola/rust that referenced this pull request Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants