Skip to content

Commit 052b937

Browse files
committed
add saw_error call
1 parent 1d219a6 commit 052b937

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gcc/rust/rust-session-manager.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,9 @@ Session::compile_crate (const char *filename)
641641
if (last_step == CompileOptions::CompileStep::NameResolution)
642642
return;
643643

644+
if (saw_errors ())
645+
return;
646+
644647
// resolution pipeline stage
645648
Resolver2_0::Late (name_resolution_ctx).go (parsed_crate);
646649

0 commit comments

Comments
 (0)