-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Merge guidelines from RFC 1567 into UX Guidelines. #34894
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
This looks decent to me but I don't have time to do a full review right now, if anyone else feels like it's good, feel free to r+ |
@bors: r+ rollup Thanks! :) |
📌 Commit 010e479 has been approved by |
Merge guidelines from RFC 1567 into UX Guidelines. This is a partial fix for issue rust-lang#34808. Most of the wording was copied verbatim from the RFC. Main difference is that I moved the actual template to the top of the section. It also makes the error explanations the longest section in the guidelines doc for now.
⌛ Testing commit 010e479 with merge cda0675... |
💔 Test failed - auto-win-msvc-64-opt |
@bors: retry On Tue, Jul 26, 2016 at 4:16 AM, bors [email protected] wrote:
|
@bors: r- I believe that this caused https://buildbot.rust-lang.org/builders/auto-win-gnu-32-opt-rustbuild/builds/1986 |
\``` | ||
|
||
[Optional Additional information] | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like this wasn't closed here
@bors: r+ rollup |
📌 Commit f1a51bd has been approved by |
@bors: r- It definitely makes windows build fail. You have to add ignore flag on every code block. |
Actually, this shows a bigger issue. I want to show the example and the template as raw text, not as markdown. But I don't know how to do that...I was hoping the blockquotes did it, but it doesn't. It looks like the backslash from the template also gets put into the output. |
use
|
Using ```text doesn't work here, because it stops at the first lone end code section it encounters. You can see that in the current document. I need some way of nesting code blocks. |
This is a partial fix for issue rust-lang#34808. Most of the wording was copied verbatim from the RFC. Main difference is that I moved the actual template to the top of the section. It also makes the error explanations the longest section in the guidelines doc for now.
I think this will work. Rebased my messing around with markdown into one commit. Also fixed up some of the attempts of escaping markdown from the original template in the RFC. I hope everything is good now? |
Seems good for me. |
@bors: r+ rollup |
📌 Commit cede35e has been approved by |
Merge guidelines from RFC 1567 into UX Guidelines. This is a partial fix for issue rust-lang#34808. Most of the wording was copied verbatim from the RFC. Main difference is that I moved the actual template to the top of the section. It also makes the error explanations the longest section in the guidelines doc for now.
Merge guidelines from RFC 1567 into UX Guidelines. This is a partial fix for issue rust-lang#34808. Most of the wording was copied verbatim from the RFC. Main difference is that I moved the actual template to the top of the section. It also makes the error explanations the longest section in the guidelines doc for now.
It still doesn't work:
Here, To fix this error, just use the same mode in both cases. let x = (0, 2);
match x {
(0, ref y) | (ref y, 0) ={ /* use y */}
_ =()
} Alternatively, split the pattern: let x = (0, 2);
match x {
(y, 0) ={ /* use y */ }
(0, ref y) ={ /* use y */}
_ =()
} "##` ---- _0 stdout ---- Example of erroneous code:
[Error explanation]
[Optional Additional information] "## failures: test result: FAILED. 0 passed; 2 failed; 4 ignored; 0 measured command did not execute successfully: "C:\bot\slave\auto-win-gnu-32-opt-rustbuild\build\obj\build\i686-pc-windows-gnu\stage2\bin\rustdoc.exe" "--test" "C:\bot\slave\auto-win-gnu-32-opt-rustbuild\build\src/doc\rustc-ux-guidelines.md" "--test-args" ""
|
@bors: r- |
@Havvy ping! Still keeping this PR going? |
I'm stuck at the moment because I'm not sure how to show markdown that includes code blocks without putting ignore on them. I was going to see if I could mess with the test finder code to see what's going on. And then other duties took over while I was looking into it. |
Closing this until I have more time to look at it. |
This is a partial fix for issue #34808.
Most of the wording was copied verbatim from the RFC. Main difference is that I moved the actual template to the top of the section.
It also makes the error explanations the longest section in the guidelines doc for now.