File tree 1 file changed +7
-6
lines changed
compiler/rustc_interface/src
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -691,6 +691,13 @@ pub fn prepare_outputs(
691
691
}
692
692
}
693
693
694
+ if let Some ( ref dir) = compiler. temps_dir {
695
+ if fs:: create_dir_all ( dir) . is_err ( ) {
696
+ sess. err ( "failed to find or create the directory specified by `--temps-dir`" ) ;
697
+ return Err ( ErrorReported ) ;
698
+ }
699
+ }
700
+
694
701
write_out_deps ( sess, boxed_resolver, & outputs, & output_paths) ;
695
702
696
703
let only_dep_info = sess. opts . output_types . contains_key ( & OutputType :: DepInfo )
@@ -703,12 +710,6 @@ pub fn prepare_outputs(
703
710
return Err ( ErrorReported ) ;
704
711
}
705
712
}
706
- if let Some ( ref dir) = compiler. temps_dir {
707
- if fs:: create_dir_all ( dir) . is_err ( ) {
708
- sess. err ( "failed to find or create the directory specified by `--temps-dir`" ) ;
709
- return Err ( ErrorReported ) ;
710
- }
711
- }
712
713
}
713
714
714
715
Ok ( outputs)
You can’t perform that action at this time.
0 commit comments