6

Stabilize span_open() and span_close(). by m-ou-se · Pull Request #86136 · rust-...

 3 years ago
source link: https://github.com/rust-lang/rust/pull/86136
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Copy link

Member

m-ou-se commented 12 days ago

This proposes to stabilize Group::span_open() and Group::span_close().

These are part of the proc_macro_span feature gate tracked in #54725

Most of the features gated behind proc_macro_span are about source location information (file path, line and column information), expansion information (parent()), source_text(), etc. Those are not ready for stabilizaiton. However, getting the span of the ( and ) separately instead of only of the entire (...) can be very useful in proc macros, and doesn't seem blocked on anything that all the other parts of proc_macro_span are blocked on. So, this renames the feature gate for those two functions to proc_macro_group_span and stabilizes them.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK