File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,12 @@ use crate::ty::subst::SubstsRef;
8
8
use crate :: ty:: fast_reject:: SimplifiedType ;
9
9
use crate :: mir;
10
10
11
- use std:: fmt:: Debug ;
12
- use std:: hash:: Hash ;
13
11
use syntax_pos:: { Span , DUMMY_SP } ;
14
12
use syntax_pos:: symbol:: InternedString ;
15
13
16
14
/// The `Key` trait controls what types can legally be used as the key
17
15
/// for a query.
18
- pub ( super ) trait Key : Clone + Hash + Eq + Debug {
16
+ pub ( super ) trait Key {
19
17
/// Given an instance of this key, what crate is it referring to?
20
18
/// This is used to find the provider.
21
19
fn query_crate ( & self ) -> CrateNum ;
@@ -201,10 +199,7 @@ impl Key for InternedString {
201
199
202
200
/// Canonical query goals correspond to abstract trait operations that
203
201
/// are not tied to any crate in particular.
204
- impl < ' tcx , T > Key for Canonical < ' tcx , T >
205
- where
206
- T : Debug + Hash + Clone + Eq ,
207
- {
202
+ impl < ' tcx , T > Key for Canonical < ' tcx , T > {
208
203
fn query_crate ( & self ) -> CrateNum {
209
204
LOCAL_CRATE
210
205
}
You can’t perform that action at this time.
0 commit comments