-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E0463 needs to be updated to new format #35934
Comments
I'll take this one. |
I've fixed this, but when I ran the unit tests after making my changes, all the tests passed. I was expecting the unit tests related to E0463 to fail. What this suggests to me is that there are no unit tests for E0463? How should I proceed? |
@paulfanelli - yeah, there's a quirk in the unit test system where it will only start testing the labels if you add at least one NOTE to the test. You can read up on it in the Extra Credit section of the blog post |
Ok, I added a NOTE with bogus data and got the unit test for E0463 to fail. Then I put the correct NOTE in and it passed the test. But...I coded it 2 different ways and they both worked. Not sure what the best practice is? the 1st way I coded it is (adding the NOTE separately; leaving the original ERROR alone): #![feature(plugin)] fn main() { the 2nd way is (putting the ERROR and NOTE together with the ^ and |: #![feature(plugin)] fn main() { |
Those are both correct. The testing system has been around a little while so, inevitably, there are a couple ways to do things. My preference is the second of the two as, imho, it looks a little better. |
'|' comes in when '^' has already be called on a same span IIRC. |
… r=jonathandturner Update E0463 error message to new format Fixes rust-lang#35934 as part of rust-lang#35233 r? @jonathandturner
… r=jonathandturner Update E0463 error message to new format Fixes rust-lang#35934 as part of rust-lang#35233 r? @jonathandturner
… r=jonathandturner Update E0463 error message to new format Fixes rust-lang#35934 as part of rust-lang#35233 r? @jonathandturner
From: src/test/compile-fail/E0463.rs
E0463 needs a span_label, updating it from:
To:
The text was updated successfully, but these errors were encountered: