Skip to content

Commit 2dd7208

Browse files
authored
Rollup merge of rust-lang#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 ```
2 parents 9f98857 + bec5346 commit 2dd7208

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/ui/crashes/ice-96721.stderr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ error: malformed `path` attribute input
33
|
44
LL | #[path = foo!()]
55
| ^^^^^^^^^^^^^^^^ help: must be of the form: `#[path = "file"]`
6+
|
7+
= note: for more information, visit <https://doc.rust-lang.org/reference/items/modules.html#the-path-attribute>
68

79
error: aborting due to 1 previous error
810

0 commit comments

Comments
 (0)