Skip to content

Commit a6faefc

Browse files
committed
Fix non_local_definitions lint in rustc_hir_analysis
1 parent fd7079b commit a6faefc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

compiler/rustc_hir_analysis/src/coherence/inherent_impls_overlap.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ struct InherentOverlapChecker<'tcx> {
2424
tcx: TyCtxt<'tcx>,
2525
}
2626

27+
rustc_index::newtype_index! {
28+
#[orderable]
29+
pub struct RegionId {}
30+
}
31+
2732
impl<'tcx> InherentOverlapChecker<'tcx> {
2833
/// Checks whether any associated items in impls 1 and 2 share the same identifier and
2934
/// namespace.
@@ -205,11 +210,6 @@ impl<'tcx> InherentOverlapChecker<'tcx> {
205210
// This is advantageous to running the algorithm over the
206211
// entire graph when there are many connected regions.
207212

208-
rustc_index::newtype_index! {
209-
#[orderable]
210-
pub struct RegionId {}
211-
}
212-
213213
struct ConnectedRegion {
214214
idents: SmallVec<[Symbol; 8]>,
215215
impl_blocks: FxHashSet<usize>,

0 commit comments

Comments
 (0)