Skip to content

Commit 6c3f5b8

Browse files
committed
resolve conflicts
resolve conflicts
1 parent 115e216 commit 6c3f5b8

File tree

5 files changed

+8
-133
lines changed

5 files changed

+8
-133
lines changed

compiler/rustc_middle/src/query/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ rustc_queries! {
564564
}
565565

566566
/// Collects the associated items defined on a trait or impl.
567-
query associated_items(key: DefId) -> ty::AssociatedItems<'tcx> {
567+
query associated_items(key: DefId) -> ty::AssocItems<'tcx> {
568568
storage(ArenaCacheSelector<'tcx>)
569569
desc { |tcx| "collecting associated items of {}", tcx.def_path_str(key) }
570570
}

compiler/rustc_middle/src/ty/assoc.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@ impl AssocKind {
9696
/// it is relatively expensive. Instead, items are indexed by `Symbol` and hygienic comparison is
9797
/// done only on items with the same name.
9898
#[derive(Debug, Clone, PartialEq, HashStable)]
99-
pub struct AssociatedItems<'tcx> {
99+
pub struct AssocItems<'tcx> {
100100
pub(super) items: SortedIndexMultiMap<u32, Symbol, &'tcx ty::AssocItem>,
101101
}
102102

103-
impl<'tcx> AssociatedItems<'tcx> {
103+
impl<'tcx> AssocItems<'tcx> {
104104
/// Constructs an `AssociatedItems` map from a series of `ty::AssocItem`s in definition order.
105105
pub fn new(items_in_def_order: impl IntoIterator<Item = &'tcx ty::AssocItem>) -> Self {
106106
let items = items_in_def_order.into_iter().map(|item| (item.ident.name, item)).collect();
107-
AssociatedItems { items }
107+
AssocItems { items }
108108
}
109109

110110
/// Returns a slice of associated items in the order they were defined.

compiler/rustc_ty_utils/src/ty.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ fn associated_item_def_ids(tcx: TyCtxt<'_>, def_id: DefId) -> &[DefId] {
210210
}
211211
}
212212

213-
fn associated_items(tcx: TyCtxt<'_>, def_id: DefId) -> ty::AssociatedItems<'_> {
213+
fn associated_items(tcx: TyCtxt<'_>, def_id: DefId) -> ty::AssocItems<'_> {
214214
let items = tcx.associated_item_def_ids(def_id).iter().map(|did| tcx.associated_item(*did));
215-
ty::AssociatedItems::new(items)
215+
ty::AssocItems::new(items)
216216
}
217217

218218
fn def_ident_span(tcx: TyCtxt<'_>, def_id: DefId) -> Option<Span> {

compiler/rustc_typeck/src/coherence/inherent_impls_overlap.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ impl InherentOverlapChecker<'tcx> {
2424
/// namespace.
2525
fn impls_have_common_items(
2626
&self,
27-
impl_items1: &ty::AssociatedItems<'_>,
28-
impl_items2: &ty::AssociatedItems<'_>,
27+
impl_items1: &ty::AssocItems<'_>,
28+
impl_items2: &ty::AssocItems<'_>,
2929
) -> bool {
3030
let mut impl_items1 = &impl_items1;
3131
let mut impl_items2 = &impl_items2;

test.rs

-125
This file was deleted.

0 commit comments

Comments
 (0)