Skip to content

Commit b284b04

Browse files
committed
Remove unnecessary Clone bounds.
1 parent fbea6dd commit b284b04

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • compiler/rustc_middle/src/query

compiler/rustc_middle/src/query/keys.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,13 @@ impl<'tcx> QueryKey for &'tcx OsStr {
311311

312312
/// Canonical query goals correspond to abstract trait operations that
313313
/// are not tied to any crate in particular.
314-
impl<'tcx, T: Clone> QueryKey for CanonicalQueryInput<'tcx, T> {
314+
impl<'tcx, T> QueryKey for CanonicalQueryInput<'tcx, T> {
315315
fn default_span(&self, _tcx: TyCtxt<'_>) -> Span {
316316
DUMMY_SP
317317
}
318318
}
319319

320-
impl<'tcx, T: Clone> QueryKey for (CanonicalQueryInput<'tcx, T>, bool) {
320+
impl<'tcx, T> QueryKey for (CanonicalQueryInput<'tcx, T>, bool) {
321321
fn default_span(&self, _tcx: TyCtxt<'_>) -> Span {
322322
DUMMY_SP
323323
}

0 commit comments

Comments
 (0)