Skip to content

Commit abdb42b

Browse files
committed
Remove two uses of old [] notation
1 parent eb77fe9 commit abdb42b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_typeck/coherence/overlap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ impl<'cx, 'tcx,'v> visit::Visitor<'v> for OverlapChecker<'cx, 'tcx> {
147147
None => {
148148
self.tcx.sess.bug(
149149
&format!("no default implementation recorded for `{:?}`",
150-
item)[]);
150+
item));
151151
}
152152
}
153153
}

src/librustc_typeck/collect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1720,7 +1720,7 @@ fn ty_generic_predicates<'a,'tcx>(ccx: &CrateCtxt<'a,'tcx>,
17201720
let param_ty = ty::ParamTy::new(space, index, param.ident.name).to_ty(ccx.tcx);
17211721
let bounds = compute_bounds(&ccx.icx(&(base_predicates, ast_generics)),
17221722
param_ty,
1723-
&param.bounds[],
1723+
&param.bounds,
17241724
SizedByDefault::Yes,
17251725
param.span);
17261726
let predicates = ty::predicates(ccx.tcx, param_ty, &bounds);

0 commit comments

Comments
 (0)