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
Currently, oxc uses 'a for lifetime specifier, which could be very misunderstood for 'a is a commonly used name for lifetime specifier just like meaningless variable names foo or bar.
It's hard to distinguish whether a structure with lifetimes is due to hold data related to arena or just a reference.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
rustc use
'tcx
to explicitly show what data is related to arena.See https://rustc-dev-guide.rust-lang.org/memory.html#the-tcx-and-how-it-uses-lifetimes for details.
Currently, oxc uses
'a
for lifetime specifier, which could be very misunderstood for 'a
is a commonly used name for lifetime specifier just like meaningless variable namesfoo
orbar
.It's hard to distinguish whether a structure with lifetimes is due to hold data related to arena or just a reference.
Beta Was this translation helpful? Give feedback.
All reactions