forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#103452 - notriddle:rollup-peewevm, r=notriddle
Rollup of 11 pull requests Successful merges: - rust-lang#100462 (Clarify `array::from_fn` documentation) - rust-lang#101644 (Document surprising and dangerous fs::Permissions behaviour on Unix) - rust-lang#103005 (kmc-solid: Handle errors returned by `SOLID_FS_ReadDir`) - rust-lang#103140 (Add diagnostic for calling a function with the same name with unresolved Macro) - rust-lang#103254 (rustdoc: do not filter out cross-crate `Self: Sized` bounds) - rust-lang#103347 (bootstrap: also create rustc-src component in sysroot) - rust-lang#103402 (Fix wrapped valid-range handling in ty_find_init_error) - rust-lang#103414 (Pretty print lifetimes captured by RPIT) - rust-lang#103424 (rustdoc: remove no-op CSS `.code-header { border-bottom: none }`) - rust-lang#103434 (Use functions for jump-to-def-background rustdoc GUI test) - rust-lang#103447 (`MaybeUninit`: use `assume_init_drop()` in the partially initialized array example) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
23 changed files
with
305 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,22 @@ | ||
// We check the background color on the jump to definition links in the source code page. | ||
goto: "file://" + |DOC_PATH| + "/src/link_to_definition/lib.rs.html" | ||
|
||
// Set the theme to dark. | ||
local-storage: { | ||
"rustdoc-theme": "dark", | ||
"rustdoc-preferred-dark-theme": "dark", | ||
"rustdoc-use-system-theme": "false", | ||
} | ||
// We reload the page so the local storage settings are being used. | ||
reload: | ||
|
||
assert-css: ( | ||
"body.source .example-wrap pre.rust a", | ||
{"background-color": "rgb(51, 51, 51)"}, | ||
ALL, | ||
) | ||
|
||
// Set the theme to ayu. | ||
local-storage: { | ||
"rustdoc-theme": "ayu", | ||
"rustdoc-preferred-dark-theme": "ayu", | ||
"rustdoc-use-system-theme": "false", | ||
} | ||
// We reload the page so the local storage settings are being used. | ||
reload: | ||
|
||
assert-css: ( | ||
"body.source .example-wrap pre.rust a", | ||
{"background-color": "rgb(51, 51, 51)"}, | ||
ALL, | ||
define-function: ( | ||
"check-background-color", | ||
(theme, background_color), | ||
[ | ||
// Set the theme. | ||
("local-storage", { "rustdoc-theme": |theme|, "rustdoc-use-system-theme": "false" }), | ||
// We reload the page so the local storage settings are being used. | ||
("reload"), | ||
("assert-css", ( | ||
"body.source .example-wrap pre.rust a", | ||
{"background-color": |background_color|}, | ||
ALL, | ||
)), | ||
], | ||
) | ||
|
||
// Set the theme to light. | ||
local-storage: {"rustdoc-theme": "light", "rustdoc-use-system-theme": "false"} | ||
// We reload the page so the local storage settings are being used. | ||
reload: | ||
|
||
assert-css: ( | ||
"body.source .example-wrap pre.rust a", | ||
{"background-color": "rgb(238, 238, 238)"}, | ||
ALL, | ||
) | ||
call-function: ("check-background-color", ("ayu", "rgb(51, 51, 51)")) | ||
call-function: ("check-background-color", ("dark", "rgb(51, 51, 51)")) | ||
call-function: ("check-background-color", ("light", "rgb(238, 238, 238)")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#![crate_type = "lib"] | ||
|
||
pub trait U/*: ?Sized */ { | ||
fn modified(self) -> Self | ||
where | ||
Self: Sized | ||
{ | ||
self | ||
} | ||
|
||
fn touch(&self)/* where Self: ?Sized */{} | ||
} | ||
|
||
pub trait S: Sized {} |
1 change: 1 addition & 0 deletions
1
src/test/rustdoc/inline_cross/issue-24183.method_no_where_self_sized.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<h4 class="code-header">fn <a href="#method.touch" class="fnname">touch</a>(&self)</h4> |
Oops, something went wrong.