rustdoc: tweak notes on ignore/compile_fail examples#45815
rustdoc: tweak notes on ignore/compile_fail examples#45815bors merged 2 commits intorust-lang:masterfrom
Conversation
|
r? @frewsxcv (rust_highfive has picked a reviewer for you, use r? to override) |
|
@rust-lang/docs These strings are being stirred up again, what do you think of these updates? |
| }); | ||
| let tooltip = if ignore { | ||
| Some(("Be careful when using this code, it's not being tested!", "ignore")) | ||
| Some(("This example is not tested", "ignore")) |
There was a problem hiding this comment.
I'm not a big fan of this new sentence. :-/
There was a problem hiding this comment.
It's matter of fact, much better.
| Some(("This example is not tested", "ignore")) | ||
| } else if compile_fail { | ||
| Some(("This code doesn't compile so be extra careful!", "compile_fail")) | ||
| Some(("This example deliberately fails to compile", "compile_fail")) |
|
Oh right, there's a test for the warning text, so travis failed because i didn't change it: |
frewsxcv
left a comment
There was a problem hiding this comment.
lgtm! the text associated with the examples is a bit subjective, but i personally think this is an improvement. r=me with test fixes and if imperio is cool with the changes
|
triage ping for you @QuietMisdreavus! ❤️ |
|
I've pushed a commit that fixes the test. @GuillaumeGomez Do you have any specific concerns about the new text, or are you okay with this landing? AFAIK @frewsxcv wanted to make sure you were okay with the changes before approving. |
|
Oops sorry! The current text is fine for me so let's merge. @bors: r+ rollup |
|
📌 Commit 02b3785 has been approved by |
…s, r=GuillaumeGomez rustdoc: tweak notes on ignore/compile_fail examples Part of rust-lang#44927 This is a softening of these notices to mention *why* a given example has a given callout, rather then telling viewers to be careful with an example. It also changes the character used for these samples from a warning logo to a circle-i/information logo. 
…s, r=GuillaumeGomez rustdoc: tweak notes on ignore/compile_fail examples Part of rust-lang#44927 This is a softening of these notices to mention *why* a given example has a given callout, rather then telling viewers to be careful with an example. It also changes the character used for these samples from a warning logo to a circle-i/information logo. 
Part of #44927
This is a softening of these notices to mention why a given example has a given callout, rather then telling viewers to be careful with an example. It also changes the character used for these samples from a warning logo to a circle-i/information logo.