Skip to content

[beta] backports #102676

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

Merged
merged 34 commits into from
Oct 10, 2022
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
23e34ab
avoid duplicating StorageLive in let-else
dingxiangfei2009 Sep 16, 2022
3f2c7e4
add mir-opt test
dingxiangfei2009 Sep 16, 2022
4e55812
add miri test via const fn
dingxiangfei2009 Sep 18, 2022
bafca23
Make QueryOutlivesConstraint contain a ConstraintCategory
jackh726 Sep 16, 2022
d1cbeba
Pass ConstraintCategory thorough a few more places
jackh726 Sep 16, 2022
e0bcd8f
Add to_constraint_category to ObligationCause and SubregionOrigin
jackh726 Sep 16, 2022
8ecf3e7
Add outlives_constraint to BlameConstraint
jackh726 Sep 16, 2022
f174f66
Add AscribeUserTypeProvePredicate
jackh726 Sep 16, 2022
4854513
Add ExtraConstraintInfo
jackh726 Sep 16, 2022
8a8c370
Final bits
jackh726 Sep 16, 2022
923b120
Add back in normalize call
jackh726 Sep 16, 2022
cf1c279
Use Predicate ConstraintCategory when normalizing
jackh726 Aug 31, 2022
6504453
Revert "fix #101691: copy stage0 binaries into stage0-sysroot"
Mark-Simulacrum Sep 17, 2022
274d802
improve infer var handling for implied bounds
lcnr Sep 19, 2022
3ed6af5
add test
lcnr Sep 19, 2022
b117215
fix ConstProp handling of written_only_inside_own_block_locals
RalfJung Sep 20, 2022
795a6da
Fix wrongly refactored Lift impl
oli-obk Sep 21, 2022
50a8433
Fix a typo in error message
steffahn Sep 21, 2022
658aa16
Bless test output changes
steffahn Sep 21, 2022
df1e931
Deny associated type bindings within associated type bindings
compiler-errors Sep 27, 2022
b5b2a93
Create new CSS variables for links color
GuillaumeGomez Sep 16, 2022
2182446
Add GUI test for links colors
GuillaumeGomez Sep 16, 2022
69baa97
Fix regression for results colors
GuillaumeGomez Sep 27, 2022
1e14fff
Add GUI regression test for search results colors
GuillaumeGomez Sep 27, 2022
82cca23
fix unwind drop glue for if-then scopes
dingxiangfei2009 Sep 28, 2022
3a65274
apply suggestion
dingxiangfei2009 Sep 30, 2022
149b8ad
use build-pass for the test
dingxiangfei2009 Sep 30, 2022
cbcd6a1
fix doc and dedup diverge_cleanup
dingxiangfei2009 Oct 5, 2022
3d501fb
Revert "Use getentropy when possible on all Apple platforms"
BlackHoleFox Oct 5, 2022
14ff4cc
Format type_of
compiler-errors Sep 26, 2022
99a8cc1
Make type_of work correctly for const arg bindings
compiler-errors Sep 26, 2022
328b53f
Support bindings with anon consts in generics
compiler-errors Sep 26, 2022
d223452
Revert "Auto merge of #101620 - cjgillot:compute_lint_levels_by_def, …
cjgillot Sep 20, 2022
f73da69
EscapeAscii is not an ExactSizeIterator
compiler-errors Jul 29, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add GUI test for links colors
(cherry picked from commit 5d449a0)
  • Loading branch information
GuillaumeGomez authored and cuviper committed Oct 4, 2022
commit 218244646fefbf68cd9b506d77f4211b1e3c24bd
85 changes: 85 additions & 0 deletions src/test/rustdoc-gui/links-color.goml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
// This test checks links colors.
goto: file://|DOC_PATH|/test_docs/index.html

// This is needed so that the text color is computed.
show-text: true

// Ayu theme
local-storage: {
"rustdoc-theme": "ayu",
"rustdoc-use-system-theme": "false",
}
reload:

assert-css: (".item-table .mod", {"color": "rgb(57, 175, 215)"}, ALL)
assert-css: (".item-table .macro", {"color": "rgb(163, 122, 204)"}, ALL)
assert-css: (".item-table .struct", {"color": "rgb(255, 160, 165)"}, ALL)
assert-css: (".item-table .enum", {"color": "rgb(255, 160, 165)"}, ALL)
assert-css: (".item-table .trait", {"color": "rgb(57, 175, 215)"}, ALL)
assert-css: (".item-table .fn", {"color": "rgb(253, 214, 135)"}, ALL)
assert-css: (".item-table .type", {"color": "rgb(255, 160, 165)"}, ALL)
assert-css: (".item-table .union", {"color": "rgb(255, 160, 165)"}, ALL)
assert-css: (".item-table .keyword", {"color": "rgb(57, 175, 215)"}, ALL)

assert-css: (
".sidebar-elems a:not(.current)",
{"color": "rgb(83, 177, 219)", "background-color": "rgba(0, 0, 0, 0)", "font-weight": "400"},
ALL,
)
assert-css: (
".sidebar-elems a.current",
{"color": "rgb(255, 180, 76)", "background-color": "rgba(0, 0, 0, 0)", "font-weight": "500"},
ALL,
)


// Dark theme
local-storage: {"rustdoc-theme": "dark"}
reload:

assert-css: (".item-table .mod", {"color": "rgb(210, 153, 29)"}, ALL)
assert-css: (".item-table .macro", {"color": "rgb(9, 189, 0)"}, ALL)
assert-css: (".item-table .struct", {"color": "rgb(45, 191, 184)"}, ALL)
assert-css: (".item-table .enum", {"color": "rgb(45, 191, 184)"}, ALL)
assert-css: (".item-table .trait", {"color": "rgb(183, 140, 242)"}, ALL)
assert-css: (".item-table .fn", {"color": "rgb(43, 171, 99)"}, ALL)
assert-css: (".item-table .type", {"color": "rgb(45, 191, 184)"}, ALL)
assert-css: (".item-table .union", {"color": "rgb(45, 191, 184)"}, ALL)
assert-css: (".item-table .keyword", {"color": "rgb(210, 153, 29)"}, ALL)

assert-css: (
".sidebar-elems a:not(.current)",
{"color": "rgb(253, 191, 53)", "background-color": "rgba(0, 0, 0, 0)", "font-weight": "400"},
ALL,
)
assert-css: (
".sidebar-elems a.current",
{"color": "rgb(253, 191, 53)", "background-color": "rgb(68, 68, 68)", "font-weight": "500"},
ALL,
)


// Light theme
local-storage: {"rustdoc-theme": "light"}
reload:

assert-css: (".item-table .mod", {"color": "rgb(56, 115, 173)"}, ALL)
assert-css: (".item-table .macro", {"color": "rgb(6, 128, 0)"}, ALL)
assert-css: (".item-table .struct", {"color": "rgb(173, 55, 138)"}, ALL)
assert-css: (".item-table .enum", {"color": "rgb(173, 55, 138)"}, ALL)
assert-css: (".item-table .trait", {"color": "rgb(110, 79, 201)"}, ALL)
assert-css: (".item-table .fn", {"color": "rgb(173, 124, 55)"}, ALL)
assert-css: (".item-table .type", {"color": "rgb(173, 55, 138)"}, ALL)
assert-css: (".item-table .union", {"color": "rgb(173, 55, 138)"}, ALL)
assert-css: (".item-table .keyword", {"color": "rgb(56, 115, 173)"}, ALL)

assert-css: (
".sidebar-elems a:not(.current)",
{"color": "rgb(53, 109, 164)", "background-color": "rgba(0, 0, 0, 0)", "font-weight": "400"},
ALL,
)
assert-css: (
".sidebar-elems a.current",
{"color": "rgb(53, 109, 164)", "background-color": "rgb(255, 255, 255)", "font-weight": "500"},
ALL,
)