use rustc::mir::*;
use rustc::ty::Ty;
use rustc_index::vec::{Idx, IndexVec};
-use syntax_pos::Span;
+use rustc_span::Span;
/// This struct represents a patch to MIR, which can add
/// new statements and basic blocks and patch over block
let mut resume_stmt_block = None;
for (bb, block) in body.basic_blocks().iter_enumerated() {
if let TerminatorKind::Resume = block.terminator().kind {
- if block.statements.len() > 0 {
+ if !block.statements.is_empty() {
assert!(resume_stmt_block.is_none());
resume_stmt_block = Some(bb);
} else {