Auto merge of #140514 - m-ou-se:proc-macro-span-file, r=Amanieu

Stabilize proc_macro::Span::{file, local_file}.

Stabilizes this part of https://github.com/rust-lang/rust/issues/54725:

```rust
impl Span {
    pub fn file(&self) -> String; // Mapped/artificial file name, for display purposes.

    pub fn local_file(&self) -> Option<PathBuf>; // Real file name as it exists on the local file system.
}
```

See also the naming discussion in https://github.com/rust-lang/rust/issues/139903
This commit is contained in:
bors 2025-05-06 22:03:11 +00:00
commit 8681c01814

Diff Content Not Available