Skip to content

Commit ed26026

Browse files
committed
update.sh: Expect FxHashMap to come from rustc_hash, not
`rustc_data_structures` rust-lang/rust#108626
1 parent f857532 commit ed26026

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

COMMIT.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
cca5d219e6801ebc2a62b455a12c657098a8af2d
1+
52c71e6e2802a50d34ac4a3e96fc2636a3023eb2

src/lib.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
//! struct is the root of the JSON blob and all other items are contained within.
55
66
use std::collections::HashMap;
7-
use std::path::PathBuf;
8-
97
use serde::{Deserialize, Serialize};
8+
use std::path::PathBuf;
109

1110
/// rustdoc format-version.
1211
pub const FORMAT_VERSION: u32 = 24;
@@ -54,8 +53,8 @@ pub struct ItemSummary {
5453
///
5554
/// Note that items can appear in multiple paths, and the one chosen is implementation
5655
/// defined. Currently, this is the full path to where the item was defined. Eg
57-
/// [`String`] is currently `["alloc", "string", "String"]` and [`HashMap`] is
58-
/// `["std", "collections", "hash", "map", "HashMap"]`, but this is subject to change.
56+
/// [`String`] is currently `["alloc", "string", "String"]` and [`HashMap`][`std::collections::HashMap`]
57+
/// is `["std", "collections", "hash", "map", "HashMap"]`, but this is subject to change.
5958
pub path: Vec<String>,
6059
/// Whether this item is a struct, trait, macro, etc.
6160
pub kind: ItemKind,

update.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ user="rust-lang"
88
repo="rust"
99
branch="master"
1010

11-
curl -# https://raw.githubusercontent.com/${user}/${repo}/${branch}/src/rustdoc-json-types/lib.rs | sed 's/rustc_data_structures::fx::/std::collections::/g' | sed 's/FxHashMap/HashMap/g' > src/lib.rs
11+
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
1212

1313
curl -# https://raw.githubusercontent.com/${user}/${repo}/${branch}/src/rustdoc-json-types/tests.rs > src/tests.rs
1414

0 commit comments

Comments
 (0)