Skip to content

Commit b9ceb83

Browse files
committed
add saw_error call
1 parent cb51e6d commit b9ceb83

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
@@ -643,6 +643,9 @@ Session::compile_crate (const char *filename)
643643
if (last_step == CompileOptions::CompileStep::NameResolution)
644644
return;
645645

646+
if (saw_errors ())
647+
return;
648+
646649
// resolution pipeline stage
647650
if (flag_name_resolution_2_0)
648651
Resolver2_0::Late (name_resolution_ctx).go (parsed_crate);

0 commit comments

Comments
 (0)