From a7e48f25bbb76bc894ccadba93bacd6c2004e6ab Mon Sep 17 00:00:00 2001 From: SparrowLii Date: Wed, 15 Dec 2021 10:22:03 +0800 Subject: [PATCH 1/6] update stdarch --- library/stdarch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/stdarch b/library/stdarch index d219ad63c5075..0716b22e90220 160000 --- a/library/stdarch +++ b/library/stdarch @@ -1 +1 @@ -Subproject commit d219ad63c5075098fc224a57deb4852b9734327d +Subproject commit 0716b22e902207efabe46879cbf28d0189ab7924 From 58fd2ffc966385904f6d769625b4b798f9dc4b90 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 15 Dec 2021 18:38:51 +0100 Subject: [PATCH 2/6] link to pref_align_of tracking issue --- library/core/src/intrinsics.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/core/src/intrinsics.rs b/library/core/src/intrinsics.rs index ad2f6f213dec8..46370f76e7ced 100644 --- a/library/core/src/intrinsics.rs +++ b/library/core/src/intrinsics.rs @@ -811,7 +811,8 @@ extern "rust-intrinsic" { /// The preferred alignment of a type. /// /// This intrinsic does not have a stable counterpart. - #[rustc_const_unstable(feature = "const_pref_align_of", issue = "none")] + /// It's "tracking issue" is [#91971](https://github.com/rust-lang/rust/issues/91971). + #[rustc_const_unstable(feature = "const_pref_align_of", issue = "91971")] pub fn pref_align_of() -> usize; /// The size of the referenced value in bytes. From 246de45193e3ba4a0221e59e97e8e9f01f9cfea9 Mon Sep 17 00:00:00 2001 From: Jacob Hoffman-Andrews Date: Tue, 14 Dec 2021 22:54:42 -0800 Subject: [PATCH 3/6] Apply rust-logo class only on default logo Also replace ' with " in rustdoc template --- src/librustdoc/html/templates/page.html | 32 +++++++++++-------------- src/test/rustdoc/logo-class-default.rs | 4 ++++ src/test/rustdoc/logo-class.rs | 10 ++++++++ 3 files changed, 28 insertions(+), 18 deletions(-) create mode 100644 src/test/rustdoc/logo-class-default.rs create mode 100644 src/test/rustdoc/logo-class.rs diff --git a/src/librustdoc/html/templates/page.html b/src/librustdoc/html/templates/page.html index 5c957e4a379a4..00b46b1ba918b 100644 --- a/src/librustdoc/html/templates/page.html +++ b/src/librustdoc/html/templates/page.html @@ -74,30 +74,26 @@ {{- layout.external_html.before_content | safe -}} {#- -#}
{#- -#}
{#- -#}
{#- -#} - {#- -#} + {%- if layout.logo -%} + logo + {%- else -%} + + {%- endif -%} {#- -#}