Uh oh!
There was an error while loading. Please reload this page.
Typecheck refactor for ! - #35787
Conversation
rust-highfive
commented
Aug 18, 2016
r? @arielb1 (rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
Why this change? expr_ty is a better name for such a variable.
There was a problem hiding this comment.
Because having a method named expr_ty and a variable named expr_ty is confusing.
There was a problem hiding this comment.
I find _t worse. Besides, why do we still need the expr_ty method?
There was a problem hiding this comment.
expr_ty is still used in a few places. I can keep going trying to remove it entirely if you like. Otherwise I can rename the variable ty.
arielb1
commented
Aug 18, 2016
I would move the match in |
There was a problem hiding this comment.
check_block_with_expected should return the type.
canndrew
commented
Aug 22, 2016
@eddyb is this PR good to go? I can do the same thing with patterns (factoring out |
eddyb
commented
Aug 22, 2016
@canndrew Yeah, doing that would be great. Are there many |
bors
commented
Aug 27, 2016
☔ The latest upstream changes (presumably #36030) made this pull request unmergeable. Please resolve the merge conflicts. |
a5c390f to
234939aComparecanndrew
commented
Aug 27, 2016
I've done the factoring-out for patterns. There's still some uses of |
eddyb
commented
Aug 27, 2016
@canndrew Can't both of those takes the types in? Although not confirm.rs if it's a late adjustment. |
canndrew
commented
Aug 28, 2016
I've made the coercions code take the types as arguments. The code in confirm.rs walks over a big expression tree reading the types using |
There was a problem hiding this comment.
This shouldn't be needed though. The design was such that no extra bookkeeping was needed.
canndrew
commented
Aug 28, 2016
Any idea what these LLVM linker errors are about? |
bors
commented
Sep 3, 2016
☔ The latest upstream changes (presumably #36016) made this pull request unmergeable. Please resolve the merge conflicts. |
12e74d8 to
c9a340eComparecanndrew
commented
Sep 5, 2016
@eddyb I rebased this and now it's passing. Is it good to merge? |
eddyb
commented
Sep 5, 2016
@bors r+ Thanks! |
bors
commented
Sep 5, 2016
📌 Commit c9a340e has been approved by |
bors
commented
Sep 5, 2016
Typecheck refactor for `!` Ping @nikomatsakis@eddyb. This is the PR for the typeck refactor for `!`. Is this what you guys had in mind? Is there anything else that needs doing on it?
Ping @nikomatsakis@eddyb. This is the PR for the typeck refactor for
!. Is this what you guys had in mind? Is there anything else that needs doing on it?