Simplify some nested if statements
This commit is contained in:
@@ -222,10 +222,8 @@ impl<'tcx> PrintExtra<'tcx> {
|
||||
}
|
||||
|
||||
pub fn print<'tcx>(sess: &Session, ppm: PpMode, ex: PrintExtra<'tcx>) {
|
||||
if ppm.needs_analysis() {
|
||||
if ex.tcx().analysis(()).is_err() {
|
||||
FatalError.raise();
|
||||
}
|
||||
if ppm.needs_analysis() && ex.tcx().analysis(()).is_err() {
|
||||
FatalError.raise();
|
||||
}
|
||||
|
||||
let (src, src_name) = get_source(sess);
|
||||
|
||||
Reference in New Issue
Block a user