Uh oh!
There was an error while loading. Please reload this page.
Add diagnostics for rustc_metadata - #34970
Conversation
rust-highfive
commented
Jul 22, 2016
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
GuillaumeGomez
commented
Jul 22, 2016
Thanks for the PR! However please run |
| all_errors.extend_from_slice(&rustc_privacy::DIAGNOSTICS); | ||
| all_errors.extend_from_slice(&rustc_trans::DIAGNOSTICS); | ||
| all_errors.extend_from_slice(&rustc_const_eval::DIAGNOSTICS); | ||
| all_errors.extend_from_slice(&rustc_metadata::DIAGNOSTICS); |
There was a problem hiding this comment.
Why adding this? (I'm curious)
GuillaumeGomez
commented
Jul 22, 2016
Also, you didn't follow the guidelines to write error codes that you can find here. |
jhod0
commented
Jul 22, 2016
I didn't think my original messages were in conflict with the guidelines - hopefully there is no problem now |
jhod0
commented
Jul 22, 2016
Looks like the tidy fixes did not work - I'll fix that later today |
GuillaumeGomez
commented
Jul 22, 2016
Sure, just ping me back once done. |
jhod0
commented
Jul 22, 2016
@GuillaumeGomez should be good now |
jhod0
commented
Jul 22, 2016
OK I'm pretty unsure what the problem is, there are a few test failures |
jhod0
commented
Jul 22, 2016
Now that the metadata diagnostics are registered, it runs some doctests which were not previously registered. So they had never been checked before, and naturally, they failed. I set them to ignore That's not a cop-out: the failing tests were about attributes to |
jhod0
commented
Jul 23, 2016
@GuillaumeGomez All good now, sorry for the hassle! |
| A link name was given with an empty name. Erroneous code example: | ||
| ``` | ||
| ```ignore |
There was a problem hiding this comment.
It should be compile_fail,E0454 and not ignore.
| Causes of this error: | ||
| ```ignore |
GuillaumeGomez
commented
Jul 23, 2016
I just checked tidy and RFC things for now. Please update and then I'll check the content. |
In order to fix failing tests of rust-lang#35011
jhod0
commented
Jul 30, 2016
@GuillaumeGomez passing checks |
| Erroneous code xamples: | ||
| ```compile_fail |
There was a problem hiding this comment.
Missing the expected error code.
GuillaumeGomez
commented
Jul 31, 2016
Beside all this, your PR should contain a commit for each error code (so 3 if I'm not wrong). |
nikomatsakis
commented
Aug 16, 2016
I'm going to go ahead and close this PR for inactivity. @jhod0 please feel free to re-open once you've had a chance to address @GuillaumeGomez's comments! <3 |
Part of #32777
Diagnostics messages are added for:
E0466 E0467 E0468 E0469 E0470
Additionally, rustc_driver is modified so that rustc_metadata diagnostics are available at runtime
cc @GuillaumeGomez