about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/usefulness.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-05-06 22:03:11 +0000
committerbors <bors@rust-lang.org>2025-05-06 22:03:11 +0000
commit669c1ab9677ae8dc1d7db30b75fd173d06c0c75a (patch)
treea69e8f5750137a4e6d7d8f0e33ffcc4d488c7694 /compiler/rustc_pattern_analysis/src/usefulness.rs
parent27d6200a70601f6fcf419bf2f9e37989f3624ca4 (diff)
parent2a053c7a1532da2d8f60ac5a8f92b3e4e80d82d5 (diff)
downloadrust-669c1ab9677ae8dc1d7db30b75fd173d06c0c75a.tar.gz
rust-669c1ab9677ae8dc1d7db30b75fd173d06c0c75a.zip
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
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/usefulness.rs')
0 files changed, 0 insertions, 0 deletions