rust/src/test
bors b2516121e2 Auto merge of #79742 - GuillaumeGomez:move-tooltips-messages-out-of-html, r=Nemo157
Move tooltips messages out of html

First thing first: nothing in the output has changed. You still have the "i" on the left of code blocks examples when they have `ignore`, `compile_fail`, `should_panic` and `edition`. The behavior also remains the same: when you hover the "i", you have the corresponding message showing up.

So now, why this PR then? I realized recently that we were actually generating those messages into the HTML every time whereas all messages are the same (except for the edition ones, I'll come back to it later). So instead of generating more content, I simply moved it inside the CSS thanks to pseudo elements (`::before` and `::after`). The message is now inside `::after` and we use the `::before` to have the small triangle on the left of the message. So now, we have less HTML generated which is seems pretty nice.

So now, back to the `edition` change: the message is globally the same, but the "edition" itself can be different (2015 or 2018 currently, I expect 2021 to arrive not too far in the future). So the only difference for it is that I added a new attribute on the tooltip called `edition` which contains this information. Then, the `::after` uses it inside its `content` (you can get the content of an element's attribute by using `attr` and concat different strings by simply having them after the other).

Don't hesitate if a part of my explanations isn't clear.

r? `@jyn514`
2020-12-24 15:22:28 +00:00
..
assembly Add wasm32 support to inline asm 2020-12-01 12:18:21 -06:00
auxiliary
codegen tests: codegen/transmute-scalar needs optimizations enabled. 2020-12-10 13:24:47 +02:00
codegen-units simplify-locals: Remove unused assignments regardless of rvalue kind 2020-10-26 10:48:28 +01:00
compile-fail Move test from compile-fail to ui/binop 2020-12-21 00:27:53 +08:00
debuginfo Auto merge of #78461 - TimDiekmann:vec-alloc, r=Amanieu 2020-11-21 22:46:50 +00:00
incremental Disable the constant debuginfo promotion pass by default 2020-12-14 19:56:10 -05:00
mir-opt Rollup merge of #80040 - tmiasko:always-lower-intrinsics, r=Dylan-DPC 2020-12-17 11:36:52 +01:00
pretty Rename optin_builtin_traits to auto_traits 2020-11-23 14:14:06 -08:00
run-make Auto merge of #78122 - fusion-engineering-forks:fmt-write-bounds-check, r=Mark-Simulacrum 2020-11-29 23:14:40 +00:00
run-make-fulldeps Remove redundant and unreliable coverage test results 2020-12-16 22:25:12 -08:00
run-pass-valgrind Drop support for cloudabi targets 2020-11-22 17:11:41 -05:00
rustdoc Auto merge of #79742 - GuillaumeGomez:move-tooltips-messages-out-of-html, r=Nemo157 2020-12-24 15:22:28 +00:00
rustdoc-js Add more rustdoc-js test cases 2020-12-03 14:11:37 -08:00
rustdoc-js-std
rustdoc-json Use true ID for def_id. 2020-12-05 22:38:57 +00:00
rustdoc-ui Remove redundant test 2020-12-21 17:40:39 +01:00
rustfix
ui Auto merge of #77692 - PankajChaudhary5:issue-76630, r=davidtwco 2020-12-24 07:32:19 +00:00
ui-fulldeps Only deny doc_keyword in std and set it as "allow" by default 2020-12-03 16:48:17 +01:00
COMPILER_TESTS.md