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
This error message obscures the fact that, for consistency's sake, we require lifetime parameters to precede type parameters in the type parameter declaration list.
I propose the following error message:
lf.rs:2:11: 2:13 error: lifetime parameters must be declared prior to type parameters
lf.rs:2 fn foo<T, 'a>(x: &'a T) {}
^~
The text was updated successfully, but these errors were encountered:
It is not possible to write a declarative macro, that produces an attribute w/o
an item attached to it. This means that the `check_item` will already insert the
span in the map, if it came from an expansion. So additionally checking if the
macro came from an expansion doesn't add anything here. So the
`check_attribute` function, and with that the problematic `attr.span()` call can
be completely removed.
Fixesrust-lang#14303
Consider the following program:
Compiling gives this error:
This error message obscures the fact that, for consistency's sake, we require lifetime parameters to precede type parameters in the type parameter declaration list.
I propose the following error message:
The text was updated successfully, but these errors were encountered: