Uh oh!
There was an error while loading. Please reload this page.
Make name resolution errors non-fatal - #30320
Conversation
rust-highfive
commented
Dec 11, 2015
r? @jroesch (rust_highfive has picked a reviewer for you, use r? to override) |
nrc
commented
Dec 11, 2015
cc @rust-lang/compiler anyone can review this, I don't think it needs any special knowledge. I'd be grateful if anyone has the time. |
There was a problem hiding this comment.
Sounds like these should be kept as typeck errors and removed from resolve.
nikomatsakis
commented
Dec 14, 2015
This looks good to me. I agree with @eddyb that reporting an error in the case of |
nikomatsakis
commented
Dec 14, 2015
r+ modulo that question. |
nrc
commented
Dec 15, 2015
Seems easy enough to change to only giving a type mismatch error in that case (I hacked the change and we didn't fail any tests). However the error message is a fair bit less informative and it seems tricky to add that information to the type mismatch error, so in this case I'd be in favour of leaving the duplicate errors (or trying to suppress the type mismatch, but that is trickier and best left as a follow-up). |
nrc
commented
Dec 15, 2015
bors
commented
Dec 15, 2015
📌 Commit 18b4fe0 has been approved by |
bors
commented
Dec 15, 2015
⌛ Testing commit 18b4fe0 with merge 7aa94a2... |
bors
commented
Dec 15, 2015
💔 Test failed - auto-mac-64-nopt-t |
alexcrichton
commented
Dec 15, 2015
@bors: retry On Mon, Dec 14, 2015 at 7:59 PM, bors notifications@github.com wrote:
|
We can now handle name resolution errors and get past type checking (if we're a bit lucky). This is the first step towards doing code completion for partial programs (we need error recovery in the parser and early access to save-analysis).
bors
commented
Dec 15, 2015
nikomatsakis
commented
Dec 15, 2015
I was thinking of trying to suppress the type mismatch, yes. OK. |
We can now handle name resolution errors and get past type checking (if we're a bit lucky). This is the first step towards doing code completion for partial programs (we need error recovery in the parser and early access to save-analysis).
We can now handle name resolution errors and get past type checking (if we're a bit lucky). This is the first step towards doing code completion for partial programs (we need error recovery in the parser and early access to save-analysis).
We can now handle name resolution errors and get past type checking (if we're a bit lucky). This is the first step towards doing code completion for partial programs (we need error recovery in the parser and early access to save-analysis).