Skip to content

Commit b1a97f6

Browse files
Faster PartialOrd/Ord
1 parent 2d309ff commit b1a97f6

File tree

6 files changed

+6
-10
lines changed

6 files changed

+6
-10
lines changed

Cargo.lock

+1-2
Original file line numberDiff line numberDiff line change
@@ -1014,8 +1014,7 @@ dependencies = [
10141014
[[package]]
10151015
name = "derivative"
10161016
version = "2.2.0"
1017-
source = "registry+https://github.com/rust-lang/crates.io-index"
1018-
checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b"
1017+
source = "git+https://github.com/compiler-errors/rust-derivative.git?branch=fast-discriminant#fd1434ceff14441827f68505bc7f13e6d4eec6da"
10191018
dependencies = [
10201019
"proc-macro2",
10211020
"quote",

compiler/rustc_type_ir/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ rustc_serialize = { path = "../rustc_serialize" }
1212
rustc_data_structures = { path = "../rustc_data_structures" }
1313
rustc_macros = { path = "../rustc_macros" }
1414
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
15-
derivative = "2.2.0"
15+
derivative = { git = "https://github.com/compiler-errors/rust-derivative.git", branch = "fast-discriminant" }

compiler/rustc_type_ir/src/const_kind.rs

-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ use self::ConstKind::*;
1717
PartialEq(bound = ""),
1818
Eq(bound = ""),
1919
PartialOrd(bound = ""),
20-
PartialOrd = "feature_allow_slow_enum",
2120
Ord(bound = ""),
22-
Ord = "feature_allow_slow_enum",
2321
Hash(bound = "")
2422
)]
2523
pub enum ConstKind<I: Interner> {

compiler/rustc_type_ir/src/region_kind.rs

-2
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@ use self::RegionKind::*;
122122
PartialEq(bound = ""),
123123
Eq(bound = ""),
124124
PartialOrd(bound = ""),
125-
PartialOrd = "feature_allow_slow_enum",
126125
Ord(bound = ""),
127-
Ord = "feature_allow_slow_enum",
128126
Hash(bound = "")
129127
)]
130128
pub enum RegionKind<I: Interner> {

compiler/rustc_type_ir/src/ty_kind.rs

-2
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,7 @@ pub enum AliasKind {
119119
PartialEq(bound = ""),
120120
Eq(bound = ""),
121121
PartialOrd(bound = ""),
122-
PartialOrd = "feature_allow_slow_enum",
123122
Ord(bound = ""),
124-
Ord = "feature_allow_slow_enum",
125123
Hash(bound = "")
126124
)]
127125
pub enum TyKind<I: Interner> {

src/tools/tidy/src/extdeps.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ use std::fs;
44
use std::path::Path;
55

66
/// List of allowed sources for packages.
7-
const ALLOWED_SOURCES: &[&str] = &["\"registry+https://github.com/rust-lang/crates.io-index\""];
7+
const ALLOWED_SOURCES: &[&str] = &[
8+
"\"registry+https://github.com/rust-lang/crates.io-index\"",
9+
"\"git+https://github.com/compiler-errors/rust-derivative.git?branch=fast-discriminant#fd1434ceff14441827f68505bc7f13e6d4eec6da\"",
10+
];
811

912
/// Checks for external package sources. `root` is the path to the directory that contains the
1013
/// workspace `Cargo.toml`.

0 commit comments

Comments
 (0)