Skip to content

Commit 77c50dc

Browse files
committed
Remove unnecessary trait bounds from keys::Keys.
1 parent c23a7aa commit 77c50dc

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/librustc/ty/query/keys.rs

+2-7
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ use crate::ty::subst::SubstsRef;
88
use crate::ty::fast_reject::SimplifiedType;
99
use crate::mir;
1010

11-
use std::fmt::Debug;
12-
use std::hash::Hash;
1311
use syntax_pos::{Span, DUMMY_SP};
1412
use 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
}

0 commit comments

Comments
 (0)