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_parse/src/validate_attr.rs | |
| parent | a3fce72a27ee41077c3752851ff778f886f0a4fa (diff) | |
| download | rust-c440a5b814005c85ec903f9b9e44e25bf5c9c565.tar.gz rust-c440a5b814005c85ec903f9b9e44e25bf5c9c565.zip | |
Add `ErrorGuaranteed` to `ast::ExprKind::Err`
Diffstat (limited to 'compiler/rustc_parse/src/validate_attr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/validate_attr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/validate_attr.rs b/compiler/rustc_parse/src/validate_attr.rs index 5d46581f646..73c92708eb3 100644 --- a/compiler/rustc_parse/src/validate_attr.rs +++ b/compiler/rustc_parse/src/validate_attr.rs @@ -90,7 +90,7 @@ pub fn parse_meta<'a>(sess: &'a ParseSess, attr: &Attribute) -> PResult<'a, Meta // been reported. let msg = "attribute value must be a literal"; let mut err = sess.dcx.struct_span_err(expr.span, msg); - if let ast::ExprKind::Err = expr.kind { + if let ast::ExprKind::Err(_) = expr.kind { err.downgrade_to_delayed_bug(); } return Err(err); |
