forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
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#103026 - matthiaskrgr:rollup-gfmlfkt, r=matth…
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#103000 (Add suggestion to the "missing native library" error) - rust-lang#103006 (rustdoc: don't ICE on `TyKind::Typeof`) - rust-lang#103008 (replace ReErased with fresh region vars in opaque types) - rust-lang#103011 (Improve rustdoc `unsafe-fn` GUI test) - rust-lang#103013 (Add new bootstrap entrypoints to triagebot) - rust-lang#103016 (Ensure enum cast moves) - rust-lang#103021 (Add links to relevant pages to find constraint information) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
26 changed files
with
392 additions
and
67 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
2 changes: 1 addition & 1 deletion
2
src/ci/docker/host-x86_64/x86_64-gnu-tools/browser-ui-test.version
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 +1 @@ | ||
0.12.2 | ||
0.12.3 |
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,37 +1,28 @@ | ||
// Check position and color of the `<sup>` for unsafe elements. | ||
goto: "file://" + |DOC_PATH| + "/test_docs/index.html" | ||
|
||
compare-elements-property: ( | ||
"//a[@title='test_docs::safe_fn fn']/..", | ||
"//a[@title='test_docs::unsafe_fn fn']/..", | ||
["clientHeight"] | ||
) | ||
|
||
// If the text isn't displayed, the browser doesn't compute color style correctly... | ||
show-text: true | ||
|
||
// 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: (".item-left sup", { | ||
"color": "rgb(221, 221, 221)" | ||
}) | ||
|
||
// 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: (".item-left sup", { | ||
"color": "rgb(197, 197, 197)" | ||
}) | ||
compare-elements-property: ( | ||
"//a[@title='test_docs::safe_fn fn']/..", | ||
"//a[@title='test_docs::unsafe_fn fn']/..", | ||
["clientHeight"] | ||
) | ||
|
||
// Set the theme to light. | ||
local-storage: {"rustdoc-theme": "light", "rustdoc-preferred-dark-theme": "light", "rustdoc-use-system-theme": "false"} | ||
// We reload the page so the local storage settings are being used. | ||
reload: | ||
define-function: ( | ||
"sup-check", | ||
// `theme` is the theme being tested. | ||
// `color` is the expected color of the `<sup>` element. | ||
(theme, 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", (".item-left sup", {"color": |color|})), | ||
], | ||
) | ||
|
||
assert-css: (".item-left sup", { | ||
"color": "rgb(0, 0, 0)" | ||
}) | ||
call-function: ("sup-check", ("dark", "rgb(221, 221, 221)")) | ||
call-function: ("sup-check", ("ayu", "rgb(197, 197, 197)")) | ||
call-function: ("sup-check", ("light", "rgb(0, 0, 0)")) |
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,4 @@ | ||
struct Struct { | ||
y: (typeof("hey"),), | ||
//~^ `typeof` is a reserved keyword but unimplemented | ||
} |
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 @@ | ||
error[E0516]: `typeof` is a reserved keyword but unimplemented | ||
--> $DIR/issue-102986.rs:2:9 | ||
| | ||
LL | y: (typeof("hey"),), | ||
| ^^^^^^^^^^^^^ reserved keyword | ||
| | ||
help: consider replacing `typeof(...)` with an actual type | ||
| | ||
LL | y: (&'static str,), | ||
| ~~~~~~~~~~~~ | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0516`. |
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,8 @@ | ||
enum Enum { A, B, C } | ||
|
||
fn func(inbounds: &Enum, array: &[i16; 3]) -> i16 { | ||
array[*inbounds as usize] | ||
//~^ ERROR [E0507] | ||
} | ||
|
||
fn main() {} |
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,9 @@ | ||
error[E0507]: cannot move out of `*inbounds` which is behind a shared reference | ||
--> $DIR/issue-102389.rs:4:11 | ||
| | ||
LL | array[*inbounds as usize] | ||
| ^^^^^^^^^ move occurs because `*inbounds` has type `Enum`, which does not implement the `Copy` trait | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0507`. |
Oops, something went wrong.