Uh oh!
There was an error while loading. Please reload this page.
Fix incorrect type mismatch label pointing at return type - #46720
Conversation
rust-highfive
commented
Dec 14, 2017
r? @arielb1 (rust_highfive has picked a reviewer for you, use r? to override) |
This is still wrong in a case such as this: fnmain(){let x = 0;match x {
_ => {4//~ ERROR}}// (there's a missing semicolon here)println!("hi!");}I would prefer to have a tag on |
This comment has been minimized.
This comment has been minimized.
arielb1
commented
Dec 25, 2017
estebank
commented
Jun 26, 2018
Reopening as although it is imperfect I want to reduce the incidence of incorrect hints. |
| } | ||
| (&hir::FunctionRetTy::DefaultReturn(span), _, _) => { | ||
| (&hir::FunctionRetTy::DefaultReturn(span), _, false, true) => { | ||
| // `fn main()` must return `()`, do not suggest changing return type |
There was a problem hiding this comment.
Note that this is not strictly true anymore -- maincan return other types!
nikomatsakis
commented
Jun 28, 2018
@bors r+ |
bors
commented
Jun 28, 2018
📌 Commit 6752a5c has been approved by |
bors
commented
Jun 28, 2018
Fix incorrect type mismatch label pointing at return type CC #46302.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
estebank
commented
Jun 28, 2018
@bors retry |
bors
commented
Jun 29, 2018
⌛ Testing commit 6752a5c with merge 73917eb0007c5fce6074abf656bb11e60026fdcc... |
bors
commented
Jun 29, 2018
💔 Test failed - status-appveyor |
kennytm
commented
Jun 29, 2018
Legit, UI test not up-to-date. |
estebank
commented
Jun 29, 2018
bors
commented
Jun 29, 2018
📌 Commit 2636b31 has been approved by |
bors
commented
Jun 29, 2018
Fix incorrect type mismatch label pointing at return type CC #46302.
bors
commented
Jun 29, 2018
☀️ Test successful - status-appveyor, status-travis |
CC #46302.