Remove two uses of old [] notation

This commit is contained in:
Niko Matsakis
2015-02-24 11:50:07 -05:00
parent eb77fe9e06
commit abdb42ba64
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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));
}
}
}
+1 -1
View File
@@ -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,
&param.bounds[],
&param.bounds,
SizedByDefault::Yes,
param.span);
let predicates = ty::predicates(ccx.tcx, param_ty, &bounds);