interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / vendor / proc-macro2 / src / probe / proc_macro_span_file.rs

19 lines · 370 bytes Raw Blame History
1// The subset of Span's API stabilized in Rust 1.88.
2
3#![cfg_attr(procmacro2_build_probe, no_std)]
4
5extern crate alloc;
6extern crate proc_macro;
7extern crate std;
8
9use alloc::string::String;
10use proc_macro::Span;
11use std::path::PathBuf;
12
13pub fn file(this: &Span) -> String {
14 this.file()
15}
16
17pub fn local_file(this: &Span) -> Option<PathBuf> {
18 this.local_file()
19}