|
87 | 87 |
|
88 | 88 | // Proc-macro2 types in rustdoc of other crates get linked to here. |
89 | 89 | #![doc(html_root_url = "https://docs.rs/proc-macro2/1.0.59")] |
90 | | -#![cfg_attr( |
91 | | - any(proc_macro_span, super_unstable), |
92 | | - feature(proc_macro_span, proc_macro_span_shrink) |
93 | | -)] |
| 90 | +#![cfg_attr(any(proc_macro_span, super_unstable), feature(proc_macro_span))] |
94 | 91 | #![cfg_attr(super_unstable, feature(proc_macro_def_site))] |
95 | 92 | #![cfg_attr(doc_cfg, feature(doc_cfg))] |
96 | 93 | #![allow( |
@@ -494,24 +491,6 @@ impl Span { |
494 | 491 | self.inner.end() |
495 | 492 | } |
496 | 493 |
|
497 | | - /// Creates an empty span pointing to directly before this span. |
498 | | - /// |
499 | | - /// This method is semver exempt and not exposed by default. |
500 | | - #[cfg(all(procmacro2_semver_exempt, any(not(wrap_proc_macro), super_unstable)))] |
501 | | - #[cfg_attr(doc_cfg, doc(cfg(procmacro2_semver_exempt)))] |
502 | | - pub fn before(&self) -> Span { |
503 | | - Span::_new(self.inner.before()) |
504 | | - } |
505 | | - |
506 | | - /// Creates an empty span pointing to directly after this span. |
507 | | - /// |
508 | | - /// This method is semver exempt and not exposed by default. |
509 | | - #[cfg(all(procmacro2_semver_exempt, any(not(wrap_proc_macro), super_unstable)))] |
510 | | - #[cfg_attr(doc_cfg, doc(cfg(procmacro2_semver_exempt)))] |
511 | | - pub fn after(&self) -> Span { |
512 | | - Span::_new(self.inner.after()) |
513 | | - } |
514 | | - |
515 | 494 | /// Create a new span encompassing `self` and `other`. |
516 | 495 | /// |
517 | 496 | /// Returns `None` if `self` and `other` are from different files. |
|
0 commit comments