Uh oh!
There was an error while loading. Please reload this page.
Improve error message and snippet for "did you mean x" - #36798
Conversation
rust-highfive
commented
Sep 28, 2016
(rust_highfive has picked a reviewer for you, use r? to override) |
sophiajt
commented
Sep 28, 2016
For the default cause, I'd just use an "unknown field" label |
nikomatsakis
commented
Sep 28, 2016
@gavinb nice! Can you change the test to be a UI-style test? I agree with @jonathandturner, something generic like "unknown field" would be a good fallback label. Ideally, we'd have a test for that case too. |
gavinb
commented
Sep 29, 2016
@nikomatsakis I've added the "unknown field" handling, converted the test to UI style test and added a test specifically for the unknown field case. |
sophiajt
commented
Sep 29, 2016
Looks like adding the label means also updating a set of tests that don't expect it yet. Here's what I see from Travis: |
gavinb
commented
Oct 1, 2016
Ok, I'll run the complete test suite and fix up the above. (Didn't before as I was running on batteries!) Will update PR once full build and test suite pass. |
27f3c70 to
338bef8Compare- Fixesrust-lang#36164 - Part of rust-lang#35233 - handles unknown fields - uses UI-style tests - update all related tests (cfail, ui, incremental)
gavinb
commented
Oct 2, 2016
@jonathandturner I went through and updated all the tests so that |
GuillaumeGomez
commented
Oct 2, 2016
Thanks! @bors: r+ rollup |
bors
commented
Oct 2, 2016
📌 Commit 99aae9b has been approved by |
Improve error message and snippet for "did you mean `x`" - Fixesrust-lang#36164 - Part of rust-lang#35233 Based on the standalone example https://is.gd/8STXMd posted by @nikomatsakis and using the third formatting option mentioned in rust-lang#36164 and agreed by @jonathandturner. Note however this does not address the question of [how to handle an empty or unknown suggestion](rust-lang#36164 (comment)). @nikomatsakis any suggestions on how best to address that part?
x" is not so helpful #36164Based on the standalone example https://is.gd/8STXMd posted by @nikomatsakis and using the third formatting option mentioned in #36164 and agreed by @jonathandturner.
Note however this does not address the question of how to handle an empty or unknown suggestion. @nikomatsakis any suggestions on how best to address that part?