From 30154cde2e057be2463dffe06d5b446d53b1877f Mon Sep 17 00:00:00 2001 From: Miguel Ojeda Date: Sun, 28 Nov 2021 20:34:02 +0100 Subject: [PATCH] rust: docs: remove temporary CSS fix It was solved in 1.55.0 via commit https://github.com/rust-lang/rust/commit/a8318e420d19c364b1eec33956a86164941f6df4 Signed-off-by: Miguel Ojeda --- rust/Makefile | 9 --------- 1 file changed, 9 deletions(-) diff --git a/rust/Makefile b/rust/Makefile index 2caeb92a44c58f..2d08314e70310d 100644 --- a/rust/Makefile +++ b/rust/Makefile @@ -45,17 +45,8 @@ quiet_cmd_rustdoc = RUSTDOC $(if $(rustdoc_host),H, ) $< --output $(objtree)/rust/doc --crate-name $(subst rustdoc-,,$@) \ @$(objtree)/include/generated/rustc_cfg $< -# This is a temporary fix for the CSS, visible on `type`s (`Result`). -# It is already fixed in nightly. -RUSTDOC_FIX_BEFORE := .impl,.method,.type:not(.container-rustdoc),.associatedconstant,.associatedtype -RUSTDOC_FIX_AFTER := .impl,.impl-items .method,.methods .method,.impl-items \ - .type,.methods .type,.impl-items .associatedconstant,.methods \ - .associatedconstant,.impl-items .associatedtype,.methods .associatedtype - rustdoc: rustdoc-core rustdoc-macros rustdoc-compiler_builtins rustdoc-alloc rustdoc-kernel $(Q)cp $(srctree)/Documentation/rust/assets/* $(objtree)/rust/doc - $(Q)sed -i "s/$(RUSTDOC_FIX_BEFORE)/$(RUSTDOC_FIX_AFTER)/" \ - $(objtree)/rust/doc/rustdoc.css rustdoc-macros: private rustdoc_host = yes rustdoc-macros: private rustc_target_flags = --crate-type proc-macro \