File tree 2 files changed +9
-4
lines changed
src/tools/rust-analyzer/crates/hir-expand/src
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ pub struct BuiltinAttribute {
23
23
#[ derive( Clone , Copy ) ]
24
24
pub struct AttributeTemplate {
25
25
pub word : bool ,
26
- pub list : Option < & ' static str > ,
26
+ pub list : Option < & ' static [ & ' static str ] > ,
27
27
pub name_value_str : Option < & ' static str > ,
28
28
}
29
29
Original file line number Diff line number Diff line change @@ -2,7 +2,12 @@ error: malformed `crate_type` attribute input
2
2
--> $DIR/no_crate_type.rs:2:1
3
3
|
4
4
LL | #![crate_type]
5
- | ^^^^^^^^^^^^^^ help: must be of the form: `#![crate_type = "bin|lib|..."]`
6
-
7
- error: aborting due to 1 previous error
5
+ | ^^^^^^^^^^^^^^ malformed input
6
+ help: must be of the form:
7
+ |
8
+ LL | #![crate_type = "bin"]
9
+ |
10
+ LL | #![crate_type = "lib"]
11
+ |
12
+ LL | #![crate_type = "..."]
8
13
You can’t perform that action at this time.
0 commit comments