Include rendered diagnostic in json#46052
Conversation
7aa1b0f to
d5520fc
Compare
|
Currently checking whether |
|
Jup, happens on master but not on nightly... edit: it happens with rustc built with debug-assertions. No idea how long we've had this issue, but it's fixed now. |
src/libsyntax/json.rs
Outdated
There was a problem hiding this comment.
To clarify, this is needed only because the interface of EmitterWriter::new requires it?
src/libsyntax/json.rs
Outdated
There was a problem hiding this comment.
Nit: unnecessary to_owned?
src/tools/compiletest/src/runtest.rs
Outdated
There was a problem hiding this comment.
Could you explain this in short? This text is going to be used as a whole without any preprocessing?
There was a problem hiding this comment.
We just want this so the json looks readable if suggestions contain multilines. As a side effect error explanations also become readable
There was a problem hiding this comment.
I added a comment explaining what's going on
|
r=me with questions answered |
8fbb47b to
3864d89
Compare
|
@bors r+ |
|
📌 Commit 3864d89 has been approved by |
|
Sorry about that, the master branch has an empty line less in the error output with suggestions |
|
@bors r=petrochenkov |
|
📌 Commit e7b2702 has been approved by |
…n, r=petrochenkov Include rendered diagnostic in json r? @petrochenkov
Check //~ERROR comments in ui tests r? @nikomatsakis cc #44844 @Phlosioneer @estebank @petrochenkov this depends on #46052 getting merged first (the commits are included in here) The relevant changes of this PR are c2f0af7 and 979269b
Check //~ERROR comments in ui tests r? @nikomatsakis cc #44844 @Phlosioneer @estebank @petrochenkov this depends on #46052 getting merged first (the commits are included in here) The relevant changes of this PR are c2f0af7 and 979269b
r? @petrochenkov