We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b9dc4a3 + 8b50267 commit 591158dCopy full SHA for 591158d
src/tools/rust-analyzer/crates/hir-expand/src/inert_attr_macro.rs
@@ -23,7 +23,7 @@ pub struct BuiltinAttribute {
23
#[derive(Clone, Copy)]
24
pub struct AttributeTemplate {
25
pub word: bool,
26
- pub list: Option<&'static str>,
+ pub list: Option<&'static [&'static str]>,
27
pub name_value_str: Option<&'static str>,
28
}
29
tests/ui/no_crate_type.stderr
@@ -2,7 +2,12 @@ error: malformed `crate_type` attribute input
2
--> $DIR/no_crate_type.rs:2:1
3
|
4
LL | #![crate_type]
5
- | ^^^^^^^^^^^^^^ help: must be of the form: `#![crate_type = "bin|lib|..."]`
6
-
7
-error: aborting due to 1 previous error
+ | ^^^^^^^^^^^^^^ malformed input
+help: must be of the form:
+ |
8
+LL | #![crate_type = "bin"]
9
10
+LL | #![crate_type = "lib"]
11
12
+LL | #![crate_type = "..."]
13
0 commit comments