diff options
| author | Hampus Lidin <hampuslidin@gmail.com> | 2022-08-21 08:48:14 +0200 |
|---|---|---|
| committer | Hampus Lidin <hampuslidin@gmail.com> | 2022-08-22 20:19:19 +0200 |
| commit | 83a724eab5e7f6c7b03374efd625b71ff9cf92a3 (patch) | |
| tree | 4b1e93db63d66ed6e75f59ff3f8e9a41d33960d9 | |
| parent | 0005f628f068a766647bb0b159dac2c6cefcefa1 (diff) | |
| download | rust-83a724eab5e7f6c7b03374efd625b71ff9cf92a3.tar.gz rust-83a724eab5e7f6c7b03374efd625b71ff9cf92a3.zip | |
Refactor more diagnostics in `rustc_attr`
| -rw-r--r-- | compiler/rustc_attr/src/builtin.rs | 69 | ||||
| -rw-r--r-- | compiler/rustc_error_messages/locales/en-US/attr.ftl | 28 |
2 files changed, 49 insertions, 48 deletions
diff --git a/compiler/rustc_attr/src/builtin.rs b/compiler/rustc_attr/src/builtin.rs index b43551db43d..98a171488ca 100644 --- a/compiler/rustc_attr/src/builtin.rs +++ b/compiler/rustc_attr/src/builtin.rs @@ -237,8 +237,6 @@ where let mut promotable = false; let mut allowed_through_unstable_modules = false; - let diagnostic = &sess.parse_sess.span_diagnostic; - 'outer: for attr in attrs_iter { if 