Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide Group::span_open and span_close #134

Merged
merged 1 commit into from
Sep 17, 2018
Merged

Provide Group::span_open and span_close #134

merged 1 commit into from
Sep 17, 2018

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Sep 15, 2018

These were added to libproc_macro in rust-lang/rust#53902.

Requires factoring out an imp::Group to preserve the original proc_macro::Group in the nightly case, because deconstructing a group into delimiter/stream/span causes its span_open and span_close to be lost.

  impl Group {
+     #[cfg(procmacro2_semver_exempt)]
+     pub fn span_open(&self) -> Span;

+     #[cfg(procmacro2_semver_exempt)]
+     pub fn span_close(&self) -> Span;
  }

@alexcrichton alexcrichton merged commit 79e40a1 into dtolnay:master Sep 17, 2018
@dtolnay dtolnay deleted the group branch September 17, 2018 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants