diff options
| author | Tshepang Mbambo <hopsi@tuta.io> | 2025-07-28 08:45:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-28 08:45:28 +0200 |
| commit | 466198cfaf2ea988a98aee08df10ed1198a3874a (patch) | |
| tree | e9c9a7f48ae84ba9e277f06252ebdfbe076694e9 /compiler/rustc_interface | |
| parent | 9c99623b8ade68ae07a6226018732f2512526d34 (diff) | |
| parent | 645b85e3d508123d45d79dc6e526a06648666c68 (diff) | |
Merge pull request #2519 from rust-lang/rustc-pull
Rustc pull update
Diffstat (limited to 'compiler/rustc_interface')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 4 |
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>| { |
