Skip to content

Commit

Permalink
Auto merge of rust-lang#91145 - matthiaskrgr:rollup-91g8z8i, r=matthi…
Browse files Browse the repository at this point in the history
…askrgr

Rollup of 3 pull requests

Successful merges:

 - rust-lang#91102 (Set color for <a> in a more straightforward way.)
 - rust-lang#91143 (Update books)
 - rust-lang#91144 (Update cargo)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
  • Loading branch information
bors committed Nov 23, 2021
2 parents 936f260 + c82f4f6 commit 8d0c79d
Show file tree
Hide file tree
Showing 14 changed files with 71 additions and 43 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -888,9 +888,9 @@ dependencies = [

[[package]]
name = "curl"
version = "0.4.40"
version = "0.4.41"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "877cc2f9b8367e32b6dabb9d581557e651cb3aa693a37f8679091bbf42687d5d"
checksum = "1bc6d233563261f8db6ffb83bbaad5a73837a6e6b28868e926337ebbdece0be3"
dependencies = [
"curl-sys",
"libc",
Expand All @@ -903,9 +903,9 @@ dependencies = [

[[package]]
name = "curl-sys"
version = "0.4.50+curl-7.79.1"
version = "0.4.51+curl-7.80.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4856b76919dd599f31236bb18db5f5bd36e2ce131e64f857ca5c259665b76171"
checksum = "d130987e6a6a34fe0889e1083022fa48cd90e6709a84be3fb8dd95801de5af20"
dependencies = [
"cc",
"libc",
Expand Down
2 changes: 1 addition & 1 deletion src/doc/book
Submodule book updated 27 files
+5 −5 listings/ch10-generic-types-traits-and-lifetimes/listing-10-11/src/main.rs
+1 −1 listings/ch10-generic-types-traits-and-lifetimes/listing-10-12/Cargo.toml
+1 −1 listings/ch10-generic-types-traits-and-lifetimes/listing-10-13/Cargo.toml
+1 −1 listings/ch10-generic-types-traits-and-lifetimes/listing-10-14/Cargo.toml
+3 −2 listings/ch10-generic-types-traits-and-lifetimes/no-listing-01-calling-trait-method/Cargo.lock
+1 −1 listings/ch10-generic-types-traits-and-lifetimes/no-listing-01-calling-trait-method/Cargo.toml
+1 −3 listings/ch10-generic-types-traits-and-lifetimes/no-listing-01-calling-trait-method/src/main.rs
+1 −1 listings/ch10-generic-types-traits-and-lifetimes/no-listing-02-calling-default-impl/Cargo.toml
+1 −1 listings/ch10-generic-types-traits-and-lifetimes/no-listing-03-default-impl-calls-other-methods/Cargo.toml
+1 −1 listings/ch10-generic-types-traits-and-lifetimes/no-listing-04-traits-as-parameters/Cargo.toml
+1 −1 listings/ch10-generic-types-traits-and-lifetimes/no-listing-05-returning-impl-trait/Cargo.toml
+1 −1 listings/ch10-generic-types-traits-and-lifetimes/no-listing-06-impl-trait-returns-one-type/Cargo.toml
+238 −246 nostarch/chapter04.md
+2,042 −0 nostarch/chapter10.md
+2 −2 src/ch01-01-installation.md
+1 −1 src/ch03-01-variables-and-mutability.md
+3 −3 src/ch03-02-data-types.md
+2 −2 src/ch03-03-how-functions-work.md
+1 −1 src/ch03-05-control-flow.md
+5 −5 src/ch04-00-understanding-ownership.md
+94 −95 src/ch04-01-what-is-ownership.md
+39 −39 src/ch04-02-references-and-borrowing.md
+30 −29 src/ch04-03-slices.md
+22 −15 src/ch10-01-syntax.md
+37 −36 src/ch10-02-traits.md
+25 −20 src/ch10-03-lifetime-syntax.md
+1 −1 src/ch17-03-oo-design-patterns.md
2 changes: 1 addition & 1 deletion src/doc/edition-guide
2 changes: 1 addition & 1 deletion src/doc/embedded-book
2 changes: 1 addition & 1 deletion src/doc/reference
2 changes: 1 addition & 1 deletion src/doc/rust-by-example
4 changes: 0 additions & 4 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -1078,10 +1078,6 @@ a.test-arrow:hover{
text-decoration: none;
}

.section-header a {
color: inherit;
}

.code-attribute {
font-weight: 300;
}
Expand Down
17 changes: 11 additions & 6 deletions src/librustdoc/html/static/css/themes/ayu.css
Original file line number Diff line number Diff line change
Expand Up @@ -214,18 +214,23 @@ nav.main .separator {
border: 1px solid #5c6773;
}
a {
color: #39AFD7;
}
a.srclink,
a#toggle-all-docs,
#source-sidebar a,
pre.rust a,
.sidebar a,
.in-band a {
color: #c5c5c5;
}
.search-results a {
color: #0096cf;
}
body.source .example-wrap pre.rust a {
background: #333;
}

.docblock:not(.item-decl) a:not(.srclink):not(.test-arrow),
.docblock-short a:not(.srclink):not(.test-arrow), .item-info a,
#help a {
color: #39AFD7;
}

details.rustdoc-toggle > summary.hideme > span,
details.rustdoc-toggle > summary::before,
details.undocumented > summary::before {
Expand Down
23 changes: 14 additions & 9 deletions src/librustdoc/html/static/css/themes/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -174,22 +174,27 @@ nav.main .current {
nav.main .separator {
border-color: #eee;
}

a {
color: #ddd;
color: #D2991D;
}
body.source .example-wrap pre.rust a {
background: #333;
a.srclink,
a#toggle-all-docs,
#source-sidebar a,
pre.rust a,
.sidebar a,
.in-band a {
color: #ddd;
}

.docblock:not(.item-decl) a:not(.srclink):not(.test-arrow),
.docblock-short a:not(.srclink):not(.test-arrow), .item-info a,
#help a {
color: #D2991D;
.search-results a {
color: #ddd;
}

a.test-arrow {
color: #dedede;
}
body.source .example-wrap pre.rust a {
background: #333;
}

details.rustdoc-toggle > summary.hideme > span,
details.rustdoc-toggle > summary::before,
Expand Down
23 changes: 14 additions & 9 deletions src/librustdoc/html/static/css/themes/light.css
Original file line number Diff line number Diff line change
Expand Up @@ -169,22 +169,27 @@ nav.main .current {
nav.main .separator {
border: 1px solid #000;
}

a {
color: #000;
color: #3873AD;
}
body.source .example-wrap pre.rust a {
background: #eee;
a.srclink,
a#toggle-all-docs,
#source-sidebar a,
pre.rust a,
.sidebar a,
.in-band a {
color: #000;
}

.docblock:not(.item-decl) a:not(.srclink):not(.test-arrow),
.docblock-short a:not(.srclink):not(.test-arrow), .item-info a,
#help a {
color: #3873AD;
.search-results a {
color: initial;
}

a.test-arrow {
color: #f5f5f5;
}
body.source .example-wrap pre.rust a {
background: #eee;
}

details.rustdoc-toggle > summary.hideme > span,
details.rustdoc-toggle > summary::before,
Expand Down
17 changes: 17 additions & 0 deletions src/test/rustdoc-gui/anchors.goml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
goto: file://|DOC_PATH|/test_docs/struct.HeavilyDocumentedStruct.html

// 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: ("#toggle-all-docs", {"color": "rgba(0, 0, 0, 0)"})
assert-css: (".fqn .in-band a:nth-of-type(1)", {"color": "rgba(0, 0, 0, 0)"})
assert-css: (".fqn .in-band a:nth-of-type(2)", {"color": "rgba(0, 0, 0, 0)"})
assert-css: (".srclink", {"color": "rgba(0, 0, 0, 0)"})
assert-css: (".srclink", {"color": "rgba(0, 0, 0, 0)"})

assert-css: ("#top-doc-prose-title", {"color": "rgba(0, 0, 0, 0)"})

assert-css: (".sidebar a", {"color": "rgba(0, 0, 0, 0)"})
assert-css: (".in-band a", {"color": "rgba(0, 0, 0, 0)"})
8 changes: 4 additions & 4 deletions src/tools/rustdoc-gui/tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ async function main(argv) {
.then(out => {
const [output, nb_failures] = out;
results[nb_failures === 0 ? "successful" : "failed"].push({
file_name: file_name,
file_name: testPath,
output: output,
});
if (nb_failures > 0) {
Expand All @@ -206,7 +206,7 @@ async function main(argv) {
})
.catch(err => {
results.errored.push({
file_name: file_name,
file_name: testPath + file_name,
output: err,
});
status_bar.erroneous();
Expand Down Expand Up @@ -239,15 +239,15 @@ async function main(argv) {
console.log("");
results.failed.sort(by_filename);
results.failed.forEach(r => {
console.log(r.output);
console.log(r.file_name, r.output);
});
}
if (results.errored.length > 0) {
console.log(os.EOL);
// print run errors on the bottom so developers see them better
results.errored.sort(by_filename);
results.errored.forEach(r => {
console.error(r.output);
console.error(r.file_name, r.output);
});
}

Expand Down

0 comments on commit 8d0c79d

Please sign in to comment.