Files
linux-kernel/linux-7.2.3/rust/proc-macro2/probe/proc_macro_span_file.rs
T
2026-09-06 12:53:21 -06:00

17 lines
306 B
Rust

// SPDX-License-Identifier: Apache-2.0 OR MIT
// The subset of Span's API stabilized in Rust 1.88.
extern crate proc_macro;
use proc_macro::Span;
use std::path::PathBuf;
pub fn file(this: &Span) -> String {
this.file()
}
pub fn local_file(this: &Span) -> Option<PathBuf> {
this.local_file()
}