Skip to content

Commit 7794fbb

Browse files
committed
Group logic about the Providers struct.
1 parent 8599bff commit 7794fbb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

compiler/rustc_middle/src/ty/query/plumbing.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -529,11 +529,6 @@ macro_rules! define_queries {
529529
tcx: $tcx,
530530
input: ($(([$($modifiers)*] [$name] [$($K)*] [$V]))*)
531531
}
532-
533-
impl Copy for Providers {}
534-
impl Clone for Providers {
535-
fn clone(&self) -> Self { *self }
536-
}
537532
}
538533
}
539534

@@ -609,5 +604,10 @@ macro_rules! define_provider_struct {
609604
Providers { $($name),* }
610605
}
611606
}
607+
608+
impl Copy for Providers {}
609+
impl Clone for Providers {
610+
fn clone(&self) -> Self { *self }
611+
}
612612
};
613613
}

0 commit comments

Comments
 (0)