diff options
| author | Lieselotte <52315535+she3py@users.noreply.github.com> | 2024-02-25 22:22:11 +0100 |
|---|---|---|
| committer | Lieselotte <52315535+she3py@users.noreply.github.com> | 2024-02-25 22:24:31 +0100 |
| commit | c440a5b814005c85ec903f9b9e44e25bf5c9c565 (patch) | |
| tree | b1d4d9004e25f842949a6348a4e4269dd2a840c9 /compiler/rustc_builtin_macros/src/assert.rs | |
| parent | a3fce72a27ee41077c3752851ff778f886f0a4fa (diff) | |
| download | rust-c440a5b814005c85ec903f9b9e44e25bf5c9c565.tar.gz rust-c440a5b814005c85ec903f9b9e44e25bf5c9c565.zip | |
Add `ErrorGuaranteed` to `ast::ExprKind::Err`
Diffstat (limited to 'compiler/rustc_builtin_macros/src/assert.rs')
| -rw-r--r-- | compiler/rustc_builtin_macros/src/assert.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_builtin_macros/src/assert.rs b/compiler/rustc_builtin_macros/src/assert.rs index 501d557f3ab..613ce43dec2 100644 --- a/compiler/rustc_builtin_macros/src/assert.rs +++ b/compiler/rustc_builtin_macros/src/assert.rs @@ -23,8 +23,8 @@ pub fn expand_assert<'cx>( let Assert { cond_expr, custom_message } = match parse_assert(cx, span, tts) { Ok(assert) => assert, Err(err) => { - err.emit(); - return DummyResult::any(span); + let guar = err.emit(); + return DummyResult::any(span, guar); } }; |
