Remove two uses of old [] notation
This commit is contained in:
parent
eb77fe9e06
commit
abdb42ba64
2 changed files with 2 additions and 2 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue