You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 28, 2025. It is now read-only.
Auto merge of rust-lang#9987 - Jarcho:issue_9957, r=flip1995
Don't cross contexts while building the suggestion for `redundant_closure_call`
fixesrust-lang#9957
changelog: `redundant_closure_call`: Don't cross macro contexts while building the suggestion
= note: this error originates in the macro `m2` (in Nightly builds, run with -Z macro-backtrace for more info)
65
+
66
+
error: try not to call a closure in the expression where it is declared
67
+
--> $DIR/redundant_closure_call_fixable.rs:31:13
68
+
|
69
+
LL | (|| 0)()
70
+
| ^^^^^^^^ help: try doing something like: `0`
71
+
...
72
+
LL | m2!();
73
+
| ----- in this macro invocation
74
+
|
75
+
= note: this error originates in the macro `m` which comes from the expansion of the macro `m2` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments