Uh oh!
There was an error while loading. Please reload this page.
Add inspection and setter methods to proc_macro::Diagnostic. - #52896
Conversation
rust-highfive
commented
Jul 31, 2018
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
SergioBenitez
commented
Jul 31, 2018
This is the build failure: [00:23:33] error:This node does not have a stability attribute
[00:23:33] --> libproc_macro/diagnostic.rs:130:31[00:23:33] |
[00:23:33]130 | pub fn children(&self) -> implIterator<Item = &Diagnostic>{[00:23:33] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...which doesn't make sense to me. The method is labeled #[unstable(feature = "proc_macro_diagnostic", issue = "38356")]pubfnchildren(&self) -> implIterator<Item = &Diagnostic>{ .. }The error is pointing at the return type. Is there some extra labeling that needs to happen, or is this a bug elsewhere? |
alexcrichton
commented
Jul 31, 2018
Looks good to me! That may be a bug in the stability lint perhaps? It hasn't been touched in a long long time :( |
eddyb
commented
Jul 31, 2018
cc @oli-obk looks like the stability marking pass is not recursing into |
rust-highfive
commented
Aug 1, 2018
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
oli-obk
commented
Aug 1, 2018
Should be enough to add an arm to rust/src/librustc/middle/stability.rs Line 356 in a2af866 for |
eddyb
commented
Aug 1, 2018
@oli-obk Isn't the problem here that sometimes it doesn't get marked? |
oli-obk
commented
Aug 1, 2018
that's weird. Maybe lowering places them inside the impl block instead of the surrounding module? |
XAMPPRocky
commented
Aug 10, 2018
Triage: Marking this as blocked on a fix to the stability marking pass. @oli-obk Is there a PR/issue about this problem? If there's not can you open one? |
SergioBenitez
commented
Sep 11, 2018
@oli-obk Pinging to see if we can move this forward. Worst case, I'll just stop using |
oli-obk
commented
Sep 12, 2018
Probably the same issue as #54045 where the same fix applies |
rust-highfive
commented
Sep 13, 2018
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Also updates the issue number for 'proc_macro_diagnostic'.
SergioBenitez
commented
Sep 13, 2018
Worked around the bug by using a special-cased |
SergioBenitez
commented
Sep 14, 2018
@alexcrichton How does this look? |
alexcrichton
commented
Sep 14, 2018
@bors: r+ Looks good to me! |
bors
commented
Sep 14, 2018
📌 Commit 10bb5ed has been approved by |
bors
commented
Sep 15, 2018
⌛ Testing commit 10bb5ed with merge 5d083073c915a70b2049d9eed696bf31603e3557... |
bors
commented
Sep 15, 2018
💔 Test failed - status-travis |
rust-highfive
commented
Sep 15, 2018
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
SergioBenitez
commented
Sep 15, 2018
Failure looks unrelated. Rerun? |
kennytm
commented
Sep 15, 2018
bors
commented
Sep 15, 2018
Add inspection and setter methods to proc_macro::Diagnostic. A few useful methods for `proc_macro::Diagnostic`. r? @alexcrichton
bors
commented
Sep 15, 2018
☀️ Test successful - status-appveyor, status-travis |
…crichton Make 'proc_macro::MultiSpan' public. Oversight from rust-lang#52896.
…crichton Make 'proc_macro::MultiSpan' public. Oversight from rust-lang#52896.
A few useful methods for
proc_macro::Diagnostic.r? @alexcrichton