Skip to content

Commit df572fc

Browse files
committed
Remove unused function lower_opt_bounds
1 parent a4d2424 commit df572fc

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/librustc/hir/lowering.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -593,12 +593,6 @@ pub fn lower_mt(lctx: &LoweringContext, mt: &MutTy) -> hir::MutTy {
593593
}
594594
}
595595

596-
pub fn lower_opt_bounds(lctx: &LoweringContext,
597-
b: &Option<TyParamBounds>)
598-
-> Option<hir::TyParamBounds> {
599-
b.as_ref().map(|ref bounds| lower_bounds(lctx, bounds))
600-
}
601-
602596
fn lower_bounds(lctx: &LoweringContext, bounds: &TyParamBounds) -> hir::TyParamBounds {
603597
bounds.iter().map(|bound| lower_ty_param_bound(lctx, bound)).collect()
604598
}

0 commit comments

Comments
 (0)