File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
compiler/rustc_interface/src Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -723,6 +723,13 @@ pub fn prepare_outputs(
723
723
}
724
724
}
725
725
726
+ if let Some ( ref dir) = compiler. temps_dir {
727
+ if fs:: create_dir_all ( dir) . is_err ( ) {
728
+ sess. err ( "failed to find or create the directory specified by `--temps-dir`" ) ;
729
+ return Err ( ErrorReported ) ;
730
+ }
731
+ }
732
+
726
733
write_out_deps ( sess, boxed_resolver, & outputs, & output_paths) ;
727
734
728
735
let only_dep_info = sess. opts . output_types . contains_key ( & OutputType :: DepInfo )
@@ -735,12 +742,6 @@ pub fn prepare_outputs(
735
742
return Err ( ErrorReported ) ;
736
743
}
737
744
}
738
- if let Some ( ref dir) = compiler. temps_dir {
739
- if fs:: create_dir_all ( dir) . is_err ( ) {
740
- sess. err ( "failed to find or create the directory specified by `--temps-dir`" ) ;
741
- return Err ( ErrorReported ) ;
742
- }
743
- }
744
745
}
745
746
746
747
Ok ( outputs)
You can’t perform that action at this time.
0 commit comments