This repository was archived by the owner on May 28, 2025. It is now read-only.
forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit 669c1ab
Auto merge of rust-lang#140514 - m-ou-se:proc-macro-span-file, r=Amanieu
Stabilize proc_macro::Span::{file, local_file}.
Stabilizes this part of rust-lang#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 rust-lang#139903 1 file changed
+4
-4
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
543 | 543 |
| |
544 | 544 |
| |
545 | 545 |
| |
546 | - | ||
547 | - | ||
546 | + | ||
547 | + | ||
548 | 548 |
| |
549 | 549 |
| |
550 | 550 |
| |
551 | 551 |
| |
552 | - | ||
552 | + | ||
553 | 553 |
| |
554 | 554 |
| |
555 | 555 |
| |
556 | 556 |
| |
557 | - | ||
557 | + | ||
558 | 558 |
| |
559 | 559 |
| |
560 | 560 |
| |
|
0 commit comments