Skip to content

Commit b514c42

Browse files
committed
trait_bound_spans -> sized_trait_bound_spans
1 parent f1701dd commit b514c42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc_trait_selection/traits/object_safety.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ fn object_safety_violations_for_trait(
170170
violations
171171
}
172172

173-
fn trait_bound_spans<'tcx>(
173+
fn sized_trait_bound_spans<'tcx>(
174174
tcx: TyCtxt<'tcx>,
175175
bounds: hir::GenericBounds<'tcx>,
176176
) -> impl 'tcx + Iterator<Item = Span> {
@@ -207,14 +207,14 @@ fn get_sized_bounds(tcx: TyCtxt<'_>, trait_def_id: DefId) -> SmallVec<[Span; 1]>
207207
{
208208
// Fetch spans for trait bounds that are Sized:
209209
// `trait T where Self: Pred`
210-
Some(trait_bound_spans(tcx, pred.bounds))
210+
Some(sized_trait_bound_spans(tcx, pred.bounds))
211211
}
212212
_ => None,
213213
}
214214
})
215215
.flatten()
216216
// Fetch spans for supertraits that are `Sized`: `trait T: Super`.
217-
.chain(trait_bound_spans(tcx, bounds))
217+
.chain(sized_trait_bound_spans(tcx, bounds))
218218
.collect::<SmallVec<[Span; 1]>>(),
219219
),
220220
_ => None,

0 commit comments

Comments
 (0)