diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-03-26 09:59:07 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-03-26 09:59:07 +0100 |
| commit | b514c42e7baad3dec7dcce9e734df2e0b402391e (patch) | |
| tree | 4df947826c52a7719a974ffa76c96513f0435c1e | |
| parent | f1701ddef1408ac55f57e332a92371247aae6253 (diff) | |
| download | rust-b514c42e7baad3dec7dcce9e734df2e0b402391e.tar.gz rust-b514c42e7baad3dec7dcce9e734df2e0b402391e.zip | |
trait_bound_spans -> sized_trait_bound_spans
| -rw-r--r-- | src/librustc_trait_selection/traits/object_safety.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_trait_selection/traits/object_safety.rs b/src/librustc_trait_selection/traits/object_safety.rs index ebeb0e968b0..7d4ad61902a 100644 --- a/src/librustc_trait_selection/traits/object_safety.rs +++ b/src/librustc_trait_selection/traits/object_safety.rs @@ -170,7 +170,7 @@ fn object_safety_violations_for_trait( violations } -fn trait_bound_spans<'tcx>( +fn sized_trait_bound_spans<'tcx>( tcx: TyCtxt<'tcx>, bounds: hir::GenericBounds<'tcx>, ) -> impl 'tcx + Iterator<Item = Span> { @@ -207,14 +207,14 @@ fn get_sized_bounds(tcx: TyCtxt<'_>, trait_def_id: DefId) -> SmallVec<[Span; 1]> { // Fetch spans for trait bounds that are Sized: // `trait T where Self: Pred` - Some(trait_bound_spans(tcx, pred.bounds)) + Some(sized_trait_bound_spans(tcx, pred.bounds)) } _ => None, } }) .flatten() // Fetch spans for supertraits that are `Sized`: `trait T: Super`. - .chain(trait_bound_spans(tcx, bounds)) + .chain(sized_trait_bound_spans(tcx, bounds)) .collect::<SmallVec<[Span; 1]>>(), ), _ => None, |
