From abdb42ba6402e5c16c10ec19643a4da1f855d653 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 24 Feb 2015 11:50:07 -0500 Subject: [PATCH] Remove two uses of old `[]` notation --- src/librustc_typeck/coherence/overlap.rs | 2 +- src/librustc_typeck/collect.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc_typeck/coherence/overlap.rs b/src/librustc_typeck/coherence/overlap.rs index 366e934b4ddc..a6ecafb62413 100644 --- a/src/librustc_typeck/coherence/overlap.rs +++ b/src/librustc_typeck/coherence/overlap.rs @@ -147,7 +147,7 @@ fn visit_item(&mut self, item: &'v ast::Item) { None => { self.tcx.sess.bug( &format!("no default implementation recorded for `{:?}`", - item)[]); + item)); } } } diff --git a/src/librustc_typeck/collect.rs b/src/librustc_typeck/collect.rs index 585e7cedc477..737d20676848 100644 --- a/src/librustc_typeck/collect.rs +++ b/src/librustc_typeck/collect.rs @@ -1720,7 +1720,7 @@ fn ty_generic_predicates<'a,'tcx>(ccx: &CrateCtxt<'a,'tcx>, let param_ty = ty::ParamTy::new(space, index, param.ident.name).to_ty(ccx.tcx); let bounds = compute_bounds(&ccx.icx(&(base_predicates, ast_generics)), param_ty, - ¶m.bounds[], + ¶m.bounds, SizedByDefault::Yes, param.span); let predicates = ty::predicates(ccx.tcx, param_ty, &bounds);