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

View file

@ -147,7 +147,7 @@ impl<'cx, 'tcx,'v> visit::Visitor<'v> for OverlapChecker<'cx, 'tcx> {
None => {
self.tcx.sess.bug(
&format!("no default implementation recorded for `{:?}`",
item)[]);
item));
}
}
}

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);