Uh oh!
There was an error while loading. Please reload this page.
Point at match discriminant on type error in match arm pattern - #57366
Conversation
rust-highfive
commented
Jan 6, 2019
(rust_highfive has picked a reviewer for you, use r? to override) |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
michaelwoerister
commented
Jan 7, 2019
@varkor, would you be up for giving this a full review? Since my review backlog has grown a second page over the break, I'm glad about anything that I can hand off |
varkor
commented
Jan 7, 2019
r? @varkor I'll take a proper look soon. |
michaelwoerister
commented
Jan 7, 2019
Thanks a lot, @varkor! |
varkor
left a comment
There was a problem hiding this comment.
Looks good! r=me with the updated comment.
Uh oh!
There was an error while loading. Please reload this page.
estebank
commented
Jan 9, 2019
@bors r=varkor |
bors
commented
Jan 9, 2019
📌 Commit e70390a19e624ee6ff76d427f07d7dc4b040e843 has been approved by |
bors
commented
Jan 10, 2019
⌛ Testing commit e70390a19e624ee6ff76d427f07d7dc4b040e843 with merge 90db9244e783284768325521220fb2a0cbd6ef05... |
bors
commented
Jan 10, 2019
💔 Test failed - status-appveyor |
emilyalbini
commented
Jan 10, 2019
@bors retry |
e70390a to
10fbdbfCompareestebank
commented
Jan 13, 2019
rebased to get bors unstuck @bors r=varkor |
bors
commented
Jan 13, 2019
📌 Commit 10fbdbf has been approved by |
Point at match discriminant on type error in match arm pattern
```
error[E0308]: mismatched types
--> src/main.rs:5:9
|
4 | let temp: usize = match a + b {
| ----- this expression has type `usize`
5 | Ok(num) => num,
| ^^^^^^^ expected usize, found enum `std::result::Result`
|
= note: expected type `usize`
found type `std::result::Result<_, _>`
```
Fixrust-lang#57279.Rollup of 4 pull requests Successful merges: - #56874 (Simplify foreign type rendering.) - #57113 (Move diagnostics out from QueryJob and optimize for the case with no diagnostics) - #57366 (Point at match discriminant on type error in match arm pattern) - #57538 (librustc_mir: Fix ICE with slice patterns) Failed merges: - #57381 (Tweak output of type mismatch between "then" and `else` `if` arms) r? @ghost
Fix#57279.