Skip to content

Commit

Permalink
removes unnecessary tidy ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
aszenz committed Jun 26, 2020
1 parent 15e81be commit cf398a3
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/librustc_middle/mir/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
//!
//! [rustc dev guide]: https://rustc-dev-guide.rust-lang.org/mir/index.html
// ignore-tidy-filelength

use crate::mir::interpret::{GlobalAlloc, Scalar};
use crate::mir::visit::MirVisitable;
use crate::ty::adjustment::PointerCast;
Expand Down Expand Up @@ -299,11 +297,7 @@ impl<'tcx> Body<'tcx> {
pub fn temps_iter<'a>(&'a self) -> impl Iterator<Item = Local> + 'a {
(self.arg_count + 1..self.local_decls.len()).filter_map(move |index| {
let local = Local::new(index);
if self.local_decls[local].is_user_variable() {
None
} else {
Some(local)
}
if self.local_decls[local].is_user_variable() { None } else { Some(local) }
})
}

Expand Down Expand Up @@ -1190,11 +1184,7 @@ impl<'tcx> BasicBlockData<'tcx> {
}

pub fn visitable(&self, index: usize) -> &dyn MirVisitable<'tcx> {
if index < self.statements.len() {
&self.statements[index]
} else {
&self.terminator
}
if index < self.statements.len() { &self.statements[index] } else { &self.terminator }
}
}

Expand Down

0 comments on commit cf398a3

Please sign in to comment.