Skip to content

Commit 94b074f

Browse files
committed
Remove superfluous ;; sequences
1 parent 5b13bff commit 94b074f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Diff for: src/libcollections/str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ impl str {
10181018
///
10191019
/// ```
10201020
/// let x = "(///)".to_string();
1021-
/// let d: Vec<_> = x.split('/').collect();;
1021+
/// let d: Vec<_> = x.split('/').collect();
10221022
///
10231023
/// assert_eq!(d, &["(", "", "", ")"]);
10241024
/// ```

Diff for: src/librustc_passes/consts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ impl<'a, 'tcx> Visitor<'tcx> for CheckCrateVisitor<'a, 'tcx> {
141141
let outer_penv = self.tcx.infer_ctxt(body_id, Reveal::UserFacing).enter(|infcx| {
142142
let param_env = infcx.param_env.clone();
143143
let outer_penv = mem::replace(&mut self.param_env, param_env);
144-
let region_maps = &self.tcx.region_maps(item_def_id);;
144+
let region_maps = &self.tcx.region_maps(item_def_id);
145145
euv::ExprUseVisitor::new(self, region_maps, &infcx).consume_body(body);
146146
outer_penv
147147
});

Diff for: src/librustc_trans/mir/block.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ impl<'a, 'tcx> MirContext<'a, 'tcx> {
901901
let llty = type_of::type_of(bcx.ccx, val.ty);
902902
let cast_ptr = bcx.pointercast(dst.llval, llty.ptr_to());
903903
let in_type = val.ty;
904-
let out_type = dst.ty.to_ty(bcx.tcx());;
904+
let out_type = dst.ty.to_ty(bcx.tcx());
905905
let llalign = cmp::min(bcx.ccx.align_of(in_type), bcx.ccx.align_of(out_type));
906906
self.store_operand(bcx, cast_ptr, Some(llalign), val);
907907
}

Diff for: src/test/run-pass/issue-16671.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
fn foo<F: FnOnce()>(_f: F) { }
1414

1515
fn main() {
16-
let mut var = Vec::new();;
16+
let mut var = Vec::new();
1717
foo(move|| {
1818
var.push(1);
1919
});

0 commit comments

Comments
 (0)