diff options
Diffstat (limited to 'gcc/rust/util/rust-attributes.cc')
-rw-r--r-- | gcc/rust/util/rust-attributes.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/rust/util/rust-attributes.cc b/gcc/rust/util/rust-attributes.cc index 1d2907b..1b2a62d 100644 --- a/gcc/rust/util/rust-attributes.cc +++ b/gcc/rust/util/rust-attributes.cc @@ -565,6 +565,10 @@ AttributeChecker::visit (AST::Function &fun) { rust_error_at (attribute.get_locus (), "malformed %<%s%> attribute input", name); + rust_inform ( + attribute.get_locus (), + "must be of the form: %<#[proc_macro_derive(TraitName, " + "/*opt*/ attributes(name1, name2, ...))]%>"); } check_crate_type (name, attribute); } |