Remove rustc search statistics

This commit is contained in:
Folyd 2024-06-22 00:19:41 -07:00
parent a6983ae342
commit 46afbd0e1d
3 changed files with 0 additions and 17 deletions

View file

@ -31,10 +31,6 @@ const STATS_MAP = {
color: "#f50707",
description: "Compile error index searches."
},
"rustc": {
color: "#0995cf",
description: "Rustc docs searches."
},
[TYPE_OTHER]: {
color: "#ededed",
description: "Others including any Rust version, Clippy lint (>), book (%), and caniuse/rfc (?) searches."

View file

@ -37,14 +37,6 @@
searchIndex,
},
}, "*");
} else if (location.pathname.startsWith("/nightly/nightly-rustc/") &&
location.hostname === "doc.rust-lang.org") { // rustc pages
window.postMessage({
direction: 'rust-search-extension:rustc',
message: {
searchIndex: getSearchIndex(),
},
}, "*");
} else { // stable/nightly pages
const STD_CRATES = ['std', 'test', 'proc_macro'];

View file

@ -30,11 +30,6 @@ export const STATS_PATTERNS = [{
pattern: /^`?e\d{2,4}`?$/i,
type: 6,
},
{
name: "rustc",
pattern: /^\/\/.*/i,
type: 7,
},
{
name: "other",
pattern: /^[>%?]|(v?1\.).*/i,