We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd7079b commit a6faefcCopy full SHA for a6faefc
compiler/rustc_hir_analysis/src/coherence/inherent_impls_overlap.rs
@@ -24,6 +24,11 @@ struct InherentOverlapChecker<'tcx> {
24
tcx: TyCtxt<'tcx>,
25
}
26
27
+rustc_index::newtype_index! {
28
+ #[orderable]
29
+ pub struct RegionId {}
30
+}
31
+
32
impl<'tcx> InherentOverlapChecker<'tcx> {
33
/// Checks whether any associated items in impls 1 and 2 share the same identifier and
34
/// namespace.
@@ -205,11 +210,6 @@ impl<'tcx> InherentOverlapChecker<'tcx> {
205
210
// This is advantageous to running the algorithm over the
206
211
// entire graph when there are many connected regions.
207
212
208
- rustc_index::newtype_index! {
209
- #[orderable]
- pub struct RegionId {}
- }
-
213
struct ConnectedRegion {
214
idents: SmallVec<[Symbol; 8]>,
215
impl_blocks: FxHashSet<usize>,
0 commit comments