about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-07-28 07:11:11 +0000
committerGitHub <noreply@github.com>2025-07-28 07:11:11 +0000
commitfb464108acad905de43b03dd61c5a69ca509a73d (patch)
treeaa6ef95360aa10acfbd64d92c17755baa0796f9c /compiler/rustc_interface/src
parent0570fb420f3a37a1e9af69dcf52b1030bdfb6ad6 (diff)
parentdea3e131d53eccd46703a304d942778b5c6edef6 (diff)
downloadrust-fb464108acad905de43b03dd61c5a69ca509a73d.tar.gz
rust-fb464108acad905de43b03dd61c5a69ca509a73d.zip
Merge pull request #4500 from RalfJung/rustup
Rustup
Diffstat (limited to 'compiler/rustc_interface/src')
-rw-r--r--compiler/rustc_interface/src/passes.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs
index fb6897c7d89..057fbe2fc4e 100644
--- a/compiler/rustc_interface/src/passes.rs
+++ b/compiler/rustc_interface/src/passes.rs
@@ -208,6 +208,10 @@ fn configure_and_expand(
         // Expand macros now!
         let krate = sess.time("expand_crate", || ecx.monotonic_expander().expand_crate(krate));
 
+        if ecx.nb_macro_errors > 0 {
+            sess.dcx().abort_if_errors();
+        }
+
         // The rest is error reporting and stats
 
         sess.psess.buffered_lints.with_lock(|buffered_lints: &mut Vec<BufferedEarlyLint>| {