diff options
| author | Jana Dönszelmann <jana@donsz.nl> | 2025-08-11 11:46:30 +0200 |
|---|---|---|
| committer | Jana Dönszelmann <jana@donsz.nl> | 2025-08-24 09:14:49 +0200 |
| commit | 3bf61444616fc0b9de1e09031f40be0943823fc5 (patch) | |
| tree | c7fb122fb12ddd2a76e0bd1c350b48ee648eee07 /compiler/rustc_attr_parsing/src/interface.rs | |
| parent | 4eedad312695d773b6e2e17a4f8082660470c101 (diff) | |
| download | rust-3bf61444616fc0b9de1e09031f40be0943823fc5.tar.gz rust-3bf61444616fc0b9de1e09031f40be0943823fc5.zip | |
Allow errors to be emitted as fatal during attribute parsing
Diffstat (limited to 'compiler/rustc_attr_parsing/src/interface.rs')
| -rw-r--r-- | compiler/rustc_attr_parsing/src/interface.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_attr_parsing/src/interface.rs b/compiler/rustc_attr_parsing/src/interface.rs index f652d39a708..b4222e41b71 100644 --- a/compiler/rustc_attr_parsing/src/interface.rs +++ b/compiler/rustc_attr_parsing/src/interface.rs @@ -252,7 +252,7 @@ impl<'sess, S: Stage> AttributeParser<'sess, S> { (accept.accept_fn)(&mut cx, args); - if self.stage.should_emit().should_emit() { + if !matches!(self.stage.should_emit(), ShouldEmit::Nothing) { self.check_target( path.get_attribute_path(), attr.span, |
