Stuart Cook
d862ae2fce
Rollup merge of #145238 - estebank:attr-overhaul, r=jdonszelmann
Tweak invalid builtin attribute output
- Add link to reference/docs when possible
- More accurate suggestions by supporting multiple alternative suggestions
```
error: malformed `crate_type` attribute input
--> $DIR/crate-type-macro-call.rs:1:1
|
LL | #![crate_type = foo!()]
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: for more information, visit <https://doc.rust-lang.org/reference/linkage.html>
help: the following are the possible correct uses
|
LL - #![crate_type = foo!()]
LL + #![crate_type = "bin"]
|
LL - #![crate_type = foo!()]
LL + #![crate_type = "cdylib"]
|
LL - #![crate_type = foo!()]
LL + #![crate_type = "dylib"]
|
LL - #![crate_type = foo!()]
LL + #![crate_type = "lib"]
|
= and 4 other candidates
```
2025-08-12 20:37:53 +10:00
..
2025-08-09 15:47:01 +08:00
2025-08-11 17:05:36 -05:00
2025-02-08 22:12:13 +00:00
2025-08-09 15:47:01 +08:00
2025-08-09 15:47:01 +08:00
2025-08-09 15:47:01 +08:00
2025-08-09 15:47:01 +08:00
2025-08-11 16:00:49 +00:00
2025-08-09 15:47:01 +08:00
2025-07-14 22:29:28 +02:00
2025-04-13 16:46:02 -04:00
2025-08-09 15:47:01 +08:00
2025-02-10 20:15:30 +00:00
2025-03-25 16:44:59 +00:00
2025-08-11 16:00:49 +00:00
2025-08-09 15:47:01 +08:00
2025-05-10 08:58:47 +10:00
2025-07-13 14:34:40 +02:00
2025-08-09 15:47:01 +08:00
2025-08-09 15:47:01 +08:00
2025-08-09 15:47:01 +08:00
2025-08-09 15:47:01 +08:00
2025-07-13 14:34:40 +02:00
2025-08-09 15:47:01 +08:00
2025-08-09 15:47:01 +08:00
2025-08-09 15:47:01 +08:00
2025-07-28 17:35:09 +03:00
2025-08-09 15:47:01 +08:00
2025-08-09 15:47:01 +08:00
2025-08-09 15:47:01 +08:00