File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 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;
88use crate :: ty:: fast_reject:: SimplifiedType ;
99use crate :: mir;
1010
11- use std:: fmt:: Debug ;
12- use std:: hash:: Hash ;
1311use syntax_pos:: { Span , DUMMY_SP } ;
1412use syntax_pos:: symbol:: InternedString ;
1513
1614/// The `Key` trait controls what types can legally be used as the key
1715/// for a query.
18- pub ( super ) trait Key : Clone + Hash + Eq + Debug {
16+ pub ( super ) trait Key {
1917 /// Given an instance of this key, what crate is it referring to?
2018 /// This is used to find the provider.
2119 fn query_crate ( & self ) -> CrateNum ;
@@ -201,10 +199,7 @@ impl Key for InternedString {
201199
202200/// Canonical query goals correspond to abstract trait operations that
203201/// 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 > {
208203 fn query_crate ( & self ) -> CrateNum {
209204 LOCAL_CRATE
210205 }
You can’t perform that action at this time.
0 commit comments