File tree 6 files changed +10
-8
lines changed
6 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -1014,8 +1014,7 @@ dependencies = [
1014
1014
[[package ]]
1015
1015
name = " derivative"
1016
1016
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=eq#d1f5d08ebcec06f0acea2957efba632b7ddf8666"
1019
1018
dependencies = [
1020
1019
" proc-macro2" ,
1021
1020
" quote" ,
Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ edition = "2021"
6
6
[dependencies ]
7
7
# tidy-alphabetical-start
8
8
bitflags = " 1.2.1"
9
+ derivative = { git = " https://github.com/compiler-errors/rust-derivative.git" , branch = " eq" }
9
10
rustc_data_structures = { path = " ../rustc_data_structures" }
10
11
rustc_index = { path = " ../rustc_index" }
11
12
rustc_macros = { path = " ../rustc_macros" }
12
13
rustc_serialize = { path = " ../rustc_serialize" }
13
14
smallvec = { version = " 1.8.1" , features = [" union" , " may_dangle" ] }
14
- derivative = " 2.2.0"
15
15
# tidy-alphabetical-end
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ use self::ConstKind::*;
14
14
15
15
/// Represents a constant in Rust.
16
16
#[ derive( derivative:: Derivative ) ]
17
- #[ derivative( PartialEq ( bound = "" ) , Eq ( bound = "" ) ) ]
17
+ #[ derivative( PartialEq ( skip_discriminant = "true" , bound = "" ) , Eq ( bound = "" ) ) ]
18
18
pub enum ConstKind < I : Interner > {
19
19
/// A const generic parameter.
20
20
Param ( I :: ParamConst ) ,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use crate::{TyDecoder, TyEncoder};
13
13
/// A clause is something that can appear in where bounds or be inferred
14
14
/// by implied bounds.
15
15
#[ derive( derivative:: Derivative ) ]
16
- #[ derivative( PartialEq ( bound = "" ) , Eq ( bound = "" ) ) ]
16
+ #[ derivative( PartialEq ( skip_discriminant = "true" , bound = "" ) , Eq ( bound = "" ) ) ]
17
17
pub enum ClauseKind < I : Interner > {
18
18
/// Corresponds to `where Foo: Bar<A, B, C>`. `Foo` here would be
19
19
/// the `Self` type of the trait reference and `A`, `B`, and `C`
@@ -235,7 +235,7 @@ where
235
235
}
236
236
237
237
#[ derive( derivative:: Derivative ) ]
238
- #[ derivative( PartialEq ( bound = "" ) , Eq ( bound = "" ) ) ]
238
+ #[ derivative( PartialEq ( skip_discriminant = "true" , bound = "" ) , Eq ( bound = "" ) ) ]
239
239
pub enum PredicateKind < I : Interner > {
240
240
/// Prove a clause
241
241
Clause ( ClauseKind < I > ) ,
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ pub enum AliasKind {
115
115
/// converted to this representation using `AstConv::ast_ty_to_ty`.
116
116
#[ rustc_diagnostic_item = "IrTyKind" ]
117
117
#[ derive( derivative:: Derivative ) ]
118
- #[ derivative( PartialEq ( bound = "" ) , Eq ( bound = "" ) ) ]
118
+ #[ derivative( PartialEq ( skip_discriminant = "true" , bound = "" ) , Eq ( bound = "" ) ) ]
119
119
pub enum TyKind < I : Interner > {
120
120
/// The primitive boolean type. Written as `bool`.
121
121
Bool ,
Original file line number Diff line number Diff line change @@ -4,7 +4,10 @@ use std::fs;
4
4
use std:: path:: Path ;
5
5
6
6
/// 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=eq#d1f5d08ebcec06f0acea2957efba632b7ddf8666\" " ,
10
+ ] ;
8
11
9
12
/// Checks for external package sources. `root` is the path to the directory that contains the
10
13
/// workspace `Cargo.toml`.
You can’t perform that action at this time.
0 commit comments