Update order of prints
This commit is contained in:
parent
1d1e574136
commit
7075b6f73f
@ -124,10 +124,12 @@ pub fn perform_all_passes(context: &mut mir::Context) -> Result<(), ReidError> {
|
|||||||
|
|
||||||
let state = context.pass(&mut TypeInference { refs: &refs });
|
let state = context.pass(&mut TypeInference { refs: &refs });
|
||||||
|
|
||||||
|
#[cfg(debug_assertions)]
|
||||||
|
dbg!(&refs);
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
println!("{}", &context);
|
println!("{}", &context);
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
dbg!(&state, &refs);
|
dbg!(&state);
|
||||||
|
|
||||||
if !state.errors.is_empty() {
|
if !state.errors.is_empty() {
|
||||||
return Err(ReidError::TypeInferenceErrors(state.errors));
|
return Err(ReidError::TypeInferenceErrors(state.errors));
|
||||||
|
Loading…
Reference in New Issue
Block a user