Uh oh!
There was an error while loading. Please reload this page.
Make bottom type fallback lazy - #22010
Conversation
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. Closesrust-lang#21878
rust-highfive
commented
Feb 6, 2015
r? @Aatch (rust_highfive has picked a reviewer for you, use r? to override) |
alexcrichton
commented
Feb 6, 2015
edwardw
commented
Feb 13, 2015
nikomatsakis
commented
Feb 13, 2015
Hmm, I'm not sure how I feel about this. This introduces a "second kind" of fallback. I was planning to start work soon on RFC rust-lang/rfcs#213, which would generalize fallback for integer literals to other type parameters, and part of the reason I felt ok with |
edwardw
commented
Feb 13, 2015
I just did a quick experiment of removing |
edwardw
commented
Feb 13, 2015
And of course, feel free to close this PR if you have something more general in the making. |
nikomatsakis
commented
Feb 13, 2015
@edwardw well what I had in mind is kind of orthogonal to what you've done here. I'm still tossing it about in my mind. |
steveklabnik
commented
Apr 21, 2015
@nikomatsakis what's your thoughts on this today? |
bors
commented
Jun 12, 2015
☔ The latest upstream changes (presumably #26232) made this pull request unmergeable. Please resolve the merge conflicts. |
Fix rustfmt relative custom command
PR #17603 introduced bottom type fallback but did it a bit too
eagerly. This patch makes the fallback lazy so that
typeckcan runits cause and detect as many type errors as possible with regard to
diverging types.
Closes#21878