Never bail out early while running all the type check queries
This commit is contained in:
@@ -336,7 +336,8 @@ pub fn print<'tcx>(sess: &Session, ppm: PpMode, ex: PrintExtra<'tcx>) {
|
||||
ThirTree => {
|
||||
let tcx = ex.tcx();
|
||||
let mut out = String::new();
|
||||
if rustc_hir_analysis::check_crate(tcx).is_err() {
|
||||
rustc_hir_analysis::check_crate(tcx);
|
||||
if tcx.dcx().has_errors().is_some() {
|
||||
FatalError.raise();
|
||||
}
|
||||
debug!("pretty printing THIR tree");
|
||||
@@ -348,7 +349,8 @@ pub fn print<'tcx>(sess: &Session, ppm: PpMode, ex: PrintExtra<'tcx>) {
|
||||
ThirFlat => {
|
||||
let tcx = ex.tcx();
|
||||
let mut out = String::new();
|
||||
if rustc_hir_analysis::check_crate(tcx).is_err() {
|
||||
rustc_hir_analysis::check_crate(tcx);
|
||||
if tcx.dcx().has_errors().is_some() {
|
||||
FatalError.raise();
|
||||
}
|
||||
debug!("pretty printing THIR flat");
|
||||
|
||||
Reference in New Issue
Block a user