Stream: t-compiler

Topic: Weird comma in lifetime suggestion


marmeladema (Apr 16 2020 at 16:16, on Zulip):

Hello everyone!
I noticed some weird suggestion with a "," (comma) after the &'lifetime. I don't think its valid syntax, but I could be wrong?

error[E0106]: missing lifetime specifier
  --> engine/src/ast/visitor.rs:13:49
   |
13 |     fn visit_expr(&mut self, node: &impl ValueExpr<'_>) {
   |                                                    ^^ expected named lifetime parameter
   |
help: consider introducing a named lifetime parameter
   |
13 |     fn visit_expr(&mut self, node: &'lifetime, impl ValueExpr<'lifetime>) {
   |                                     ^^^^^^^^^^                ^^^^^^^^^
eddyb (Apr 16 2020 at 16:21, on Zulip):

no it's not :P

marmeladema (Apr 16 2020 at 16:31, on Zulip):

Ok, that needs a fix :p I'll see what i can do

Last update: May 29 2020 at 18:05UTC