Skip to content

Commit

Permalink
Fix non_local_definitions lint in rustc_hir_analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau committed Jan 29, 2024
1 parent fd7079b commit a6faefc
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ struct InherentOverlapChecker<'tcx> {
tcx: TyCtxt<'tcx>,
}

rustc_index::newtype_index! {
#[orderable]
pub struct RegionId {}
}

impl<'tcx> InherentOverlapChecker<'tcx> {
/// Checks whether any associated items in impls 1 and 2 share the same identifier and
/// namespace.
Expand Down Expand Up @@ -205,11 +210,6 @@ impl<'tcx> InherentOverlapChecker<'tcx> {
// This is advantageous to running the algorithm over the
// entire graph when there are many connected regions.

rustc_index::newtype_index! {
#[orderable]
pub struct RegionId {}
}

struct ConnectedRegion {
idents: SmallVec<[Symbol; 8]>,
impl_blocks: FxHashSet<usize>,
Expand Down

0 comments on commit a6faefc

Please sign in to comment.