Files
rust/tests/ui/attributes
Matthias Krüger c67006e139 Rollup merge of #156797 - ariagivens:suggest-quotes, r=JonathanBrouwer
Suggest adding quotation marks to identifiers in attributes

When the user provides an identifier when a literal was expected in an attribute value, suggest adding quotation marks to the identifier to make it a string literal.

For instance:
```
error: attribute value must be a literal
  --> $DIR/crate-type-non-crate.rs:9:16
   |
LL | #[crate_type = lib]
   |                ^^^ help: try adding quotation marks: `"lib"`
```
2026-05-28 07:53:36 +02:00
..
2026-03-09 09:11:06 +00:00
2025-08-14 18:18:42 +02:00
2025-05-12 16:35:09 +02:00
2024-08-16 09:07:55 +10:00
2026-02-22 20:20:33 +01:00
2026-04-17 12:37:58 +02:00
2026-04-17 12:37:58 +02:00
2025-08-14 18:18:42 +02:00
2025-08-14 18:18:42 +02:00
2026-01-11 10:54:45 +01:00
2025-06-08 11:25:09 +05:00
2026-01-18 22:41:00 +01:00
2026-03-17 17:30:56 +01:00
2026-03-17 17:30:56 +01:00
2025-02-25 18:17:32 +01:00
2025-02-25 18:17:32 +01:00
2026-03-17 17:30:56 +01:00
2026-03-17 17:30:56 +01:00
2026-03-17 17:30:56 +01:00
2026-04-21 12:28:25 +02:00
2025-08-14 18:18:42 +02:00
2025-06-20 15:06:29 +02:00
2025-06-28 16:24:17 +05:00
2025-06-29 15:37:33 +05:00
2025-06-18 12:37:08 +02:00
2025-06-18 12:37:08 +02:00
2026-03-17 17:30:56 +01:00
2025-01-07 16:04:14 +01:00
2025-12-10 12:28:05 +01:00
2025-08-14 18:18:42 +02:00
2025-08-14 18:18:42 +02:00
2025-08-14 18:18:42 +02:00
2025-08-14 18:18:42 +02:00
2025-08-14 18:18:42 +02:00
2026-04-19 23:51:38 +05:30
2025-08-19 09:03:54 +02:00
2026-04-27 09:53:10 +02:00