Skip to content

Commit 570e418

Browse files
committed
Address linting errors caught by CI
1 parent e1afa51 commit 570e418

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/librustc/mir/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ impl<'tcx> Body<'tcx> {
206206
&mut self.basic_blocks
207207
}
208208

209-
pub fn basic_block_terminator_opt_mut(&mut self, bb: BasicBlock) -> &mut Option<Terminator<'tcx>> {
209+
pub fn basic_block_terminator_opt_mut(
210+
&mut self, bb: BasicBlock
211+
) -> &mut Option<Terminator<'tcx>> {
210212
// FIXME we should look into improving the cache invalidation
211213
self.predecessors_cache = None;
212214
&mut self.basic_blocks[bb].terminator
@@ -256,7 +258,7 @@ impl<'tcx> Body<'tcx> {
256258

257259
#[inline]
258260
pub fn predecessors_for(&self, bb: BasicBlock) -> &[BasicBlock] {
259-
// TODO(nashenas88) could this be predecessors sometimes too?
261+
// FIXME(nashenas88) could this be predecessors sometimes too?
260262
&self.unwrap_predecessors()[bb]
261263
}
262264

src/librustc_mir/transform/simplify.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ pub fn remove_dead_blocks(body: &mut Body<'_>) {
276276
for alive_index in seen.iter() {
277277
replacements[alive_index] = BasicBlock::new(used_blocks);
278278
if alive_index != used_blocks {
279-
// Swap the next alive block data with the current available slot. Since alive_index is
280-
// non-decreasing this is a valid operation.
279+
// Swap the next alive block data with the current available slot. Since
280+
// alive_index is non-decreasing this is a valid operation.
281281
basic_blocks.raw.swap(alive_index, used_blocks);
282282
}
283283
used_blocks += 1;

0 commit comments

Comments
 (0)