summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/signature-proc-macro.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/proc-macro/signature-proc-macro.stderr')
-rw-r--r--tests/ui/proc-macro/signature-proc-macro.stderr40
1 files changed, 19 insertions, 21 deletions
diff --git a/tests/ui/proc-macro/signature-proc-macro.stderr b/tests/ui/proc-macro/signature-proc-macro.stderr
index 4b14a54e6..dd2cb0570 100644
--- a/tests/ui/proc-macro/signature-proc-macro.stderr
+++ b/tests/ui/proc-macro/signature-proc-macro.stderr
@@ -1,40 +1,38 @@
-error: mismatched function-like proc macro signature
+error: function-like proc macro has incorrect signature
--> $DIR/signature-proc-macro.rs:10:25
|
LL | pub fn bad_input(input: String) -> TokenStream {
- | ^^^^^^ found std::string::String, expected type `proc_macro::TokenStream`
+ | ^^^^^^ expected `proc_macro::TokenStream`, found `std::string::String`
|
- = note: function-like proc macros must have a signature of `fn(TokenStream) -> TokenStream`
+ = note: expected signature `fn(proc_macro::TokenStream) -> proc_macro::TokenStream`
+ found signature `fn(std::string::String) -> proc_macro::TokenStream`
-error: mismatched function-like proc macro signature
+error: function-like proc macro has incorrect signature
--> $DIR/signature-proc-macro.rs:16:42
|
LL | pub fn bad_output(input: TokenStream) -> String {
- | ^^^^^^ found std::string::String, expected type `proc_macro::TokenStream`
+ | ^^^^^^ expected `proc_macro::TokenStream`, found `std::string::String`
|
- = note: function-like proc macros must have a signature of `fn(TokenStream) -> TokenStream`
+ = note: expected signature `fn(proc_macro::TokenStream) -> proc_macro::TokenStream`
+ found signature `fn(proc_macro::TokenStream) -> std::string::String`
-error: mismatched function-like proc macro signature
- --> $DIR/signature-proc-macro.rs:22:41
- |
-LL | pub fn bad_everything(input: String) -> String {
- | ^^^^^^ found std::string::String, expected type `proc_macro::TokenStream`
- |
- = note: function-like proc macros must have a signature of `fn(TokenStream) -> TokenStream`
-
-error: mismatched function-like proc macro signature
+error: function-like proc macro has incorrect signature
--> $DIR/signature-proc-macro.rs:22:30
|
LL | pub fn bad_everything(input: String) -> String {
- | ^^^^^^ found std::string::String, expected type `proc_macro::TokenStream`
+ | ^^^^^^ expected `proc_macro::TokenStream`, found `std::string::String`
|
- = note: function-like proc macros must have a signature of `fn(TokenStream) -> TokenStream`
+ = note: expected signature `fn(proc_macro::TokenStream) -> proc_macro::TokenStream`
+ found signature `fn(std::string::String) -> std::string::String`
-error: mismatched function-like proc macro signature
- --> $DIR/signature-proc-macro.rs:29:33
+error: function-like proc macro has incorrect signature
+ --> $DIR/signature-proc-macro.rs:28:36
|
LL | pub fn too_many(a: TokenStream, b: TokenStream, c: String) -> TokenStream {
- | ^^^^^^^^^^^^^^^^^^^^^^^^^ found unexpected arguments
+ | ^^^^^^^^^^^ incorrect number of function parameters
+ |
+ = note: expected signature `fn(proc_macro::TokenStream) -> proc_macro::TokenStream`
+ found signature `fn(proc_macro::TokenStream, proc_macro::TokenStream, std::string::String) -> proc_macro::TokenStream`
-error: aborting due to 5 previous errors
+error: aborting due to 4 previous errors