From 569b32755108ff81aabac221c87860b048774ba2 Mon Sep 17 00:00:00 2001 From: Alona Enraght-Moony Date: Sat, 17 Aug 2024 01:08:41 +0100 Subject: [PATCH] Filter out `pub use` of `FxHashMap`. (#30) Adapts to rust-lang/rust#129124 --- COMMIT.txt | 2 +- update.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/COMMIT.txt b/COMMIT.txt index e24549d..dea2d9b 100644 --- a/COMMIT.txt +++ b/COMMIT.txt @@ -1 +1 @@ -b735547025dad853829a7dbf6b6697090e3f657c +9028b5381b2867bcd4d9cd0ba95ff97607deaaf3 diff --git a/update.sh b/update.sh index 859b377..6d10f2c 100755 --- a/update.sh +++ b/update.sh @@ -8,7 +8,11 @@ user="rust-lang" repo="rust" branch="master" -curl -# https://raw.githubusercontent.com/${user}/${repo}/${branch}/src/rustdoc-json-types/lib.rs | sed 's/rustc_hash::/std::collections::/g' | sed 's/FxHashMap/HashMap/g' > src/lib.rs +curl -# https://raw.githubusercontent.com/${user}/${repo}/${branch}/src/rustdoc-json-types/lib.rs \ + | sed 's/rustc_hash::/std::collections::/g' \ + | sed 's/FxHashMap/HashMap/g' \ + | sed 's/^pub use /use /' \ + > src/lib.rs curl -# https://raw.githubusercontent.com/${user}/${repo}/${branch}/src/rustdoc-json-types/tests.rs > src/tests.rs