aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / vendor / proc-macro2 / src / probe / proc_macro_span_location.rs
| 1 | // The subset of Span's API stabilized in Rust 1.88. |
| 2 | |
| 3 | #![cfg_attr(procmacro2_build_probe, no_std)] |
| 4 | |
| 5 | extern crate alloc; |
| 6 | extern crate proc_macro; |
| 7 | extern crate std; |
| 8 | |
| 9 | use proc_macro::Span; |
| 10 | |
| 11 | pub fn start(this: &Span) -> Span { |
| 12 | this.start() |
| 13 | } |
| 14 | |
| 15 | pub fn end(this: &Span) -> Span { |
| 16 | this.end() |
| 17 | } |
| 18 | |
| 19 | pub fn line(this: &Span) -> usize { |
| 20 | this.line() |
| 21 | } |
| 22 | |
| 23 | pub fn column(this: &Span) -> usize { |
| 24 | this.column() |
| 25 | } |